chore(server): print stack trace when there's an error
Stack traces when there's an error got swallowed up by the server.
The resulting scenario is that you'd get an error in the terminal (say "cannot use map of undefined"), with no indication of where the error happened.
That's because of the following line:
const error = err.originalError || err
originalError
resolved to an empty object, which is not undefined
, but also does not print anything.
It's unclear to me what originalError
is supposed to be, so feel free to discuss this.