From 27b7504c1995cadb80b0f409c57f1ffae657302d Mon Sep 17 00:00:00 2001 From: Matthew Stevens Date: Mon, 12 Jun 2017 17:30:52 -0700 Subject: [PATCH] Changing error message on invalid syntax --- lib/stubs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stubs.js b/lib/stubs.js index 6fa0803..c14b7c4 100644 --- a/lib/stubs.js +++ b/lib/stubs.js @@ -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;