From 194e8b00705bb04c153d1b955516a87f2b0db9d4 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Mon, 19 Feb 2024 13:24:03 +0300 Subject: [PATCH] feat: display information from the server to the client --- src/services/api.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/services/api.service.ts b/src/services/api.service.ts index 4726182..eaea148 100644 --- a/src/services/api.service.ts +++ b/src/services/api.service.ts @@ -78,6 +78,9 @@ export class ApiService { message = `Сервер вернул код ошибки: ${error.status}`; break; } + if (error.error?.Error) { + message += ` ${error.error.Error}`; + } } this.notify.open(message, NotifyColor.Danger); }