[savedObjectClient] decorate non-es errors too (#13596)
This commit is contained in:
parent
64a1e0cf7f
commit
8141e3fe4b
|
@ -142,7 +142,7 @@ export class SavedObjectsClient {
|
|||
});
|
||||
|
||||
if (response.found === false) {
|
||||
throw Boom.notFound();
|
||||
throw errors.decorateNotFoundError(Boom.notFound());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue