mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05: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:
1 parent
1a4fa2b015
commit
152df4da21
1 file changed
+1
-1
@@ -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