Closed MapleMaster closed 6 years ago
Doesn't seem to be the case:
Also the callback shouldn't be used, it will be removed in the next major version, just do var csv = json2csv(options)
.
Closing this since the callback is going away on the next release.
function checkParams() will throw an Error object, but console.error(err) only display
{}
, but no specific meaning, and it confuses the caller. I suggest usecallback(err.toString())
instead ofcallback(err)
, so the caller will get the specific error information.