2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 11:29:03 +00:00

incr: add more info on error reporting

This commit is contained in:
18alantom 2022-08-23 14:44:36 +05:30
parent 8d8660f30f
commit eadfd6f716

View File

@ -26,6 +26,12 @@ async function reportError(errorLogObj: ErrorLog) {
error_name: errorLogObj.name,
message: errorLogObj.message,
stack: errorLogObj.stack,
platform: fyo.store.platform,
version: fyo.store.appVersion,
language: fyo.store.language,
instance_id: fyo.store.instanceId,
open_count: fyo.store.openCount,
country_code: fyo.singles.SystemSettings?.countryCode,
more: stringifyCircular(errorLogObj.more ?? {}),
};