Skip to content

Commit

Permalink
fix(errors): correctly display string-typed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink committed Dec 20, 2023
1 parent 9be5fe0 commit 39a597b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion import.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var wofAdminRecords = {};
bundles.generateBundleList((err, bundlesToImport) => {

if (err) {
throw new Error(err.message);
throw new Error(err.message || err);
}

// This can be either csv or db files, the read stream module will do the job
Expand Down

0 comments on commit 39a597b

Please sign in to comment.