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 ed05318 commit 8c527efCopy full SHA for 8c527ef
1 file changed
src/angular-parser.ts
@@ -101,11 +101,13 @@ function throwErrors<
101
}
102
103
const error = new SyntaxError(message.trim(), { cause: originalError });
104
- Object.assign({
105
- cause: originalError,
+ Object.assign(error, {
106
location,
107
span: originalError.span,
108
});
+ error.cause ??= originalError;
109
+
110
+ console.log({ error });
111
112
throw error;
113
0 commit comments