mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
module: rethrow amaro error message
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
committed by
Node.js GitHub Bot
parent
d1a3f30642
commit
e799ebd7ff
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user