Browse Source

Test

pull/363/head
Sebastian Stehle 7 years ago
parent
commit
a8464c785f
  1. 2
      src/Squidex/app/framework/angular/http/http-extensions.ts

2
src/Squidex/app/framework/angular/http/http-extensions.ts

@ -83,7 +83,7 @@ export const pretifyError = (message: string) => <T>(source: Observable<T>) =>
let errorDto = Types.isObject(response.error) ? response.error : JSON.parse(response.error); let errorDto = Types.isObject(response.error) ? response.error : JSON.parse(response.error);
if (!errorDto) { if (!errorDto) {
errorDto = { message: 'Failed to make the request.', details: [] }; errorDto = { message: 'Failed to make the request.', details: [response] };
} }
if (response.status === 412) { if (response.status === 412) {

Loading…
Cancel
Save