feat: display information from the server to the client

This commit is contained in:
Polianin Nikita 2024-02-19 13:24:03 +03:00
parent 31f3a9d120
commit 194e8b0070

View File

@ -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);
}