Skip to content

Commit 351046b

Browse files
feat: improve error message.
1 parent ac8b5da commit 351046b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ module.exports.findImports = function findImports(filePath, ast, appDir) {
148148
}
149149

150150
if (nodePath.node.arguments[0].type !== 'StringLiteral') {
151-
throw new Error('Unable to handle non-string dynamic imports');
151+
throw new Error(`Unable to handle non-string dynamic imports at ${filePath}`);
152152
}
153153

154154
let importPath = nodePath.node.arguments[0].value;

0 commit comments

Comments
 (0)