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:
1c34e5f
)
fix: fix default error params setting
author
Jérôme Benoit
<jerome.benoit@sap.com>
Fri, 26 May 2023 22:55:58 +0000
(
00:55
+0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Fri, 26 May 2023 22:55:58 +0000
(
00:55
+0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/ErrorUtils.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/utils/ErrorUtils.ts
b/src/utils/ErrorUtils.ts
index 7569b8ebe0226ef438e4d54125ed5ce41cf35460..bca12b6463f5a2e76c6388f6b476fda65658c0b8 100644
(file)
--- a/
src/utils/ErrorUtils.ts
+++ b/
src/utils/ErrorUtils.ts
@@
-95,6
+95,7
@@
export class ErrorUtils {
params: HandleErrorParams<T>,
defaultParams: HandleErrorParams<T> = defaultErrorParams
): HandleErrorParams<T> {
- return { ...defaultParams, ...params };
+ params = { ...defaultParams, ...params };
+ return params;
}
}