[savedObjectClient] decorate non-es errors too (#13596)

This commit is contained in:
Spencer 2017-08-18 18:07:59 -07:00 committed by GitHub
parent 64a1e0cf7f
commit 8141e3fe4b

View file

@ -142,7 +142,7 @@ export class SavedObjectsClient {
});
if (response.found === false) {
throw Boom.notFound();
throw errors.decorateNotFoundError(Boom.notFound());
}
}