From 39a597bf0ed8303bf990f6e386bb085414ef4c7b Mon Sep 17 00:00:00 2001 From: missinglink Date: Wed, 20 Dec 2023 11:43:56 +0100 Subject: [PATCH] fix(errors): correctly display string-typed errors --- import.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/import.js b/import.js index 6b053489..2016b830 100644 --- a/import.js +++ b/import.js @@ -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