Skip to content

Commit

Permalink
[savedObjectClient] decorate non-es errors too (#13596)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8141e3f)
  • Loading branch information
spalger committed Aug 19, 2017
1 parent 7ed4365 commit d1e26e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/saved_objects/client/saved_objects_client.js
Expand Up @@ -142,7 +142,7 @@ export class SavedObjectsClient {
});

if (response.found === false) {
throw Boom.notFound();
throw errors.decorateNotFoundError(Boom.notFound());
}
}

Expand Down

0 comments on commit d1e26e2

Please sign in to comment.