We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43165cc commit b23e893Copy full SHA for b23e893
libs/lib-services/src/errors/framework-errors.ts
@@ -30,8 +30,16 @@ export class JourneyError extends Error {
30
return input instanceof JourneyError || input?.is_journey_error == true;
31
}
32
33
+ private static errorMessage(data: ErrorData) {
34
+ let message = `[${data.code}] ${data.description}`;
35
+ if (data.details) {
36
+ message += `\n ${data.details}`;
37
+ }
38
+ return message;
39
40
+
41
constructor(data: ErrorData) {
- super(`[${data.code}] ${data.description}\n ${data.details}`);
42
+ super(JourneyError.errorMessage(data));
43
44
this.errorData = data;
45
if (data.stack) {
0 commit comments