Skip to content

Commit

Permalink
Changing error message on invalid syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mjstevens777 committed Jun 13, 2017
1 parent d3a941c commit 27b7504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stubs.js
Expand Up @@ -72,7 +72,7 @@ function importsFor(src, fullPath) {

// If result is still an error, there must have been a parse error
if (result instanceof Error) {
throw new Error('Error parsing code while looking for "npm:" imports: ' + result.stack || result + ' in file: ' + fullPath);
throw new Error('Error parsing code while looking for "npm:" imports: ' + (result.stack || result) + ' in file: ' + fullPath);
}

return result;
Expand Down

0 comments on commit 27b7504

Please sign in to comment.