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