@hkdigital/lib-core 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -110,17 +110,18 @@ export function throwRethrowChainError() {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
function level2Function() {
|
|
113
|
-
try {
|
|
114
|
-
level3Function();
|
|
115
|
-
} catch (e) {
|
|
116
|
-
rethrow('Error in level2Function', e);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
function level3Function() {
|
|
121
113
|
throw new Error('Original error at deepest level');
|
|
114
|
+
// try {
|
|
115
|
+
// level3Function();
|
|
116
|
+
// } catch (e) {
|
|
117
|
+
// rethrow('Error in level2Function', e);
|
|
118
|
+
// }
|
|
122
119
|
}
|
|
123
120
|
|
|
121
|
+
// function level3Function() {
|
|
122
|
+
// throw new Error('Original error at deepest level');
|
|
123
|
+
// }
|
|
124
|
+
|
|
124
125
|
level1Function();
|
|
125
126
|
}
|
|
126
127
|
|
|
@@ -134,4 +135,4 @@ export function throwRawValibotError() {
|
|
|
134
135
|
|
|
135
136
|
// This will throw a ValiError directly from our valibotParser wrapper
|
|
136
137
|
return v.parse(schema, invalidValue);
|
|
137
|
-
}
|
|
138
|
+
}
|