mirror of https://github.com/pelias/api.git
Browse Source
middleware/500.js -cf1a483 changed the middleware to return an opaque error message rather than the error object itself, in case it contains sensitive information. The problem is that some sanitizers return a helpful error message (intended to be seen by users) as a string. Add a conditional to only return the ambiguous, catchall error message when a non-string `err` object is received -- this will likely be a stack trace, or something.pull/124/head
Severyn Kozak
10 years ago
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue