From cf5a83689d6390c8977aa671089907b3f98cf867 Mon Sep 17 00:00:00 2001 From: abhishiv17 Date: Sat, 23 Aug 2025 23:14:37 +0530 Subject: [PATCH] Fix: Handled JSON parse errors in enterprise-util with error dialog + logging [Improve error handling for invalid JSON in global_config.json #1404] --- app/common/enterprise-util.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/common/enterprise-util.ts b/app/common/enterprise-util.ts index 0ce41669a..f6bb27ced 100644 --- a/app/common/enterprise-util.ts +++ b/app/common/enterprise-util.ts @@ -46,6 +46,7 @@ function reloadDatabase(): void { ); logger.log("Error while JSON parsing global_config.json: "); logger.log(error); + enterpriseSettings = {}; // Handled the JSON parse error } } else { configFile = false;