feat: display information from the server to the client
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user