Skip to content

Commit

Permalink
undo accidental changes in core
Browse files Browse the repository at this point in the history
  • Loading branch information
dhurley14 authored and yctercero committed Jun 30, 2021
1 parent bc9eee2 commit ed094cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/server/ui_settings/routes/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ export function registerDeleteRoute(router: IRouter) {
});
} catch (error) {
if (SavedObjectsErrorHelpers.isSavedObjectsClientError(error)) {
return {
return response.customError({
body: error,
statusCode: error.output.statusCode,
};
});
}

if (error instanceof CannotOverrideError) {
Expand Down

0 comments on commit ed094cd

Please sign in to comment.