mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-24 18:38:48 +01:00
Improve HTTP404 error message
This commit is contained in:
parent
4b590e85ba
commit
fabee4a139
1 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,8 @@ String toUserString(dynamic exception) {
|
|||
if (exception is ApiException) {
|
||||
if (exception.response.statusCode == 401) {
|
||||
return L10n.global().errorUnauthenticated;
|
||||
} else if (exception.response.statusCode == 404) {
|
||||
return "404 not found";
|
||||
} else if (exception.response.statusCode == 423) {
|
||||
return L10n.global().errorLocked;
|
||||
} else if (exception.response.statusCode == 500) {
|
||||
|
|
Loading…
Reference in a new issue