Closed missinglink closed 7 months ago
The errors generated in https://github.com/pelias/whosonfirst/blob/master/src/bundleList.js are of type string, when combined with throwing err.message no error message was printed to the terminal.
string
err.message
This PR improves the error reporting by throwing the original error (if of type Error), else wrapping the string in a new Error object, although the latter method loses stack info.
related https://github.com/pelias/docker/issues/334
The errors generated in https://github.com/pelias/whosonfirst/blob/master/src/bundleList.js are of type
string
, when combined with throwingerr.message
no error message was printed to the terminal.This PR improves the error reporting by throwing the original error (if of type Error), else wrapping the string in a new Error object, although the latter method loses stack info.
related https://github.com/pelias/docker/issues/334