diff --git a/frappe/models/doctype/SystemSettings/SystemSettings.js b/frappe/models/doctype/SystemSettings/SystemSettings.js index e785f1f6..b082c8a0 100644 --- a/frappe/models/doctype/SystemSettings/SystemSettings.js +++ b/frappe/models/doctype/SystemSettings/SystemSettings.js @@ -99,11 +99,11 @@ module.exports = { }, { fieldname: 'autoReportErrors', - label: 'Auto Report Errors', + label: 'Hide & Auto Report Errors', fieldtype: 'Check', default: 0, description: t( - 'Automatically report all errors. User will still be notified when an error pops up.' + 'Prevent errors from showing and automatically report all errors.' ), }, ], diff --git a/src/errorHandling.ts b/src/errorHandling.ts index 9cbec947..73549070 100644 --- a/src/errorHandling.ts +++ b/src/errorHandling.ts @@ -76,10 +76,11 @@ export function handleError( // @ts-ignore frappe.errorLog.push(errorLogObj); - showToast(getToastProps(errorLogObj)); // @ts-ignore if (frappe.SystemSettings.autoReportErrors) { reportError(errorLogObj); + } else { + showToast(getToastProps(errorLogObj)); } }