mirror of https://github.com/nodejs/node.git
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>pull/56613/head
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue