Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
module: rethrow amaro error message
  • Loading branch information
marco-ippolito committed Jan 14, 2025
commit 699348b0c4082d134e3bcc9cde1e818853f6e3c4
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