Skip to content

Commit

Permalink
refactor(core): merge import error messages
Browse files Browse the repository at this point in the history
Merge error messages for imports to easier debug potential failures.
  • Loading branch information
SpacingBat3 committed Jun 23, 2024
1 parent 5bce35c commit 595b084
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/api/core/helper/dynamic-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ exports.dynamicImportMaybe = async function dynamicImportMaybe(path) {
} catch (e1) {
try {
return await exports.dynamicImport(path);
} catch {
} catch (e2) {
e1.message = '\n1. ' + e1.message + '\n2. ' + e2.message;
throw e1;
}
}
Expand Down

0 comments on commit 595b084

Please sign in to comment.