repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
411df11
)
Try to propagate error on configuration file reload.
author
Jérôme Benoit
<jerome.benoit@sap.com>
Thu, 9 Dec 2021 10:27:28 +0000
(11:27 +0100)
committer
Jé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
patch
|
blob
|
blame
|
history
diff --git
a/src/utils/Configuration.ts
b/src/utils/Configuration.ts
index 2e8ef2e9097f4665f2587debe7578b9a7ef6145d..8311d5d8aabd1c5fa6ab527f57f8b75b12b67e75 100644
(file)
--- 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;
+ });
}
}
});