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 <rafael.nunu@hotmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
  • Loading branch information
marco-ippolito authored and aduh95 committed Jan 31, 2025
1 parent e55b3ba commit de8c42d
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 de8c42d

Please sign in to comment.