From dcaf96dceb56a3ca655ca67dc106ced2b6aaaca1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 9 Dec 2021 11:27:28 +0100 Subject: [PATCH] Try to propagate error on configuration file reload. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/utils/Configuration.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index 2e8ef2e9..8311d5d8 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -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; + }); } } }); -- 2.34.1