diff --git a/lib/stubs.js b/lib/stubs.js index c69e7d3..8a61aa5 100644 --- a/lib/stubs.js +++ b/lib/stubs.js @@ -64,7 +64,7 @@ function importsFor(src, fullPath) { try { return parseModule(src); } catch (error) { - throw new Error('Error parsing code while looking for "npm:" imports in file: ' + fullPath + ' ' + error.stack || error); + throw new Error('Error parsing code while looking for "npm:" imports in file: ' + fullPath + '\n' + error.stack || error); } }