Skip to content

Commit e047cc3

Browse files
committed
Also attach stack to parser error
Signed-off-by: worksofliam <[email protected]>
1 parent daf05bc commit e047cc3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli/src/targets/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export interface ParserError {
2020
filePath: string;
2121
content: string;
2222
ileObject: ILEObject;
23+
error: Error;
2324
}
2425

2526
export type ParserErrorCallback = (error: ParserError) => void;
@@ -437,7 +438,8 @@ export class Targets {
437438
this.parserErrorCallback({
438439
filePath,
439440
content: e.content,
440-
ileObject: { systemName: pathDetail.name, type: this.getObjectType(relative, pathDetail.ext) }
441+
ileObject: { systemName: pathDetail.name, type: this.getObjectType(relative, pathDetail.ext) },
442+
error: e as Error
441443
});
442444

443445
} else {

0 commit comments

Comments
 (0)