mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
This commit is contained in:
parent
653dc4f19e
commit
4bd9534e39
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@ export default (server) => {
|
|||
getVisData(req)
|
||||
.then(reply)
|
||||
.catch(err => {
|
||||
reply(Boom.wrap(err, 400));
|
||||
if (err.isBoom && err.status === 401) return reply(err);
|
||||
reply(Boom.wrap(err, 500));
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue