Try to propagate error on configuration file reload.
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 9 Dec 2021 10:27:28 +0000 (11:27 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 9 Dec 2021 10:27:28 +0000 (11:27 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/utils/Configuration.ts

index 2e8ef2e9097f4665f2587debe7578b9a7ef6145d..8311d5d8aabd1c5fa6ab527f57f8b75b12b67e75 100644 (file)
@@ -199,7 +199,9 @@ export default class Configuration {
           // Nullify to force configuration file reading
           Configuration.configuration = null;
           if (!Configuration.isUndefined(Configuration.configurationChangeCallback)) {
-            Configuration.configurationChangeCallback().catch(() => { /* This is intentional */ });
+            Configuration.configurationChangeCallback().catch((error) => {
+              throw typeof error === 'string' ? new Error(error) : error;
+            });
           }
         }
       });