Skip to content

Commit

Permalink
feat: improve error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusccastroo committed Apr 27, 2024
1 parent 2175763 commit a0b5caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ module.exports.findImports = function findImports(filePath, ast, appDir) {
}

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

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

0 comments on commit a0b5caa

Please sign in to comment.