Skip to content
Snippets Groups Projects
Commit 30d694d2 authored by Jan Zickermann's avatar Jan Zickermann
Browse files

OZG-4949 Revert createHttpErrorResponse

parent 766c5d4c
No related branches found
No related tags found
No related merge requests found
...@@ -65,12 +65,10 @@ export function createValidationProblemDetails(): ValidationProblemDetails { ...@@ -65,12 +65,10 @@ export function createValidationProblemDetails(): ValidationProblemDetails {
}; };
} }
export function createHttpErrorResponse( export function createHttpErrorResponse(apiError: ApiError = null): HttpErrorResponse {
error: ApiError | ValidationProblemDetails = null,
): HttpErrorResponse {
return <HttpErrorResponse>{ return <HttpErrorResponse>{
error: { error: {
error: error ?? createApiError(), error: apiError ?? createApiError(),
}, },
}; };
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment