We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73ad3ca commit 86d783fCopy full SHA for 86d783f
lib/internal/modules/typescript.js
@@ -49,7 +49,7 @@ function parseTypeScript(source, options) {
49
try {
50
return parse(source, options);
51
} catch (error) {
52
- throw new ERR_INVALID_TYPESCRIPT_SYNTAX(error);
+ throw new ERR_INVALID_TYPESCRIPT_SYNTAX(error.message);
53
}
54
55
0 commit comments