Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
perrin4869 committed Oct 4, 2023
1 parent 6417796 commit e972616
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/configuration/variables/sources/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ module.exports = {
console.log('DEBUG', error); // debugging what is the failure, since I cannot reproduce locally
if (error.code === 'ERR_REQUIRE_ESM') {
try {
result = await import(filePath);
result = await import(filePath).catch((e) => {
// eslint-disable-next-line no-console
console.log('DEBUG IMPORT', e); // debugging what is the failure, since I cannot reproduce locally
throw e;
});
result = result?.default ?? result;
} catch (e) {
throw new ServerlessError(
Expand Down

0 comments on commit e972616

Please sign in to comment.