Skip to content

Commit

Permalink
module: rethrow amaro error message
Browse files Browse the repository at this point in the history
PR-URL: #56568
Reviewed-By: Rafael Gonzaga <[email protected]>
Reviewed-By: Marco Ippolito <[email protected]>
Reviewed-By: Jacob Smith <[email protected]>
Reviewed-By: Pietro Marchini <[email protected]>
Reviewed-By: Paolo Insogna <[email protected]>
  • Loading branch information
marco-ippolito authored and nodejs-github-bot committed Jan 15, 2025
1 parent d1a3f30 commit e799ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/modules/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function parseTypeScript(source, options) {
try {
return parse(source, options);
} catch (error) {
throw new ERR_INVALID_TYPESCRIPT_SYNTAX(error);
throw new ERR_INVALID_TYPESCRIPT_SYNTAX(error.message);
}
}

Expand Down

0 comments on commit e799ebd

Please sign in to comment.