Skip to content

Commit ab1335f

Browse files
committed
fix: add error location to output if known
1 parent e3be564 commit ab1335f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

aws2openapi.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ function doit(input, regionConfig) {
5555
.then(options => {
5656
})
5757
.catch(ex => {
58+
if (ex.options && ex.options.context) {
59+
const errorLocation = ex.options.context.pop();
60+
console.error('@',errorLocation);
61+
}
5862
console.error(aws.metadata.uid, ex.message);
5963
process.exitCode = 1;
6064
});

0 commit comments

Comments
 (0)