mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
API error messages now use snackIcon
- Press "details" for further error information - Is nice
This commit is contained in:
parent
8ae4d2b584
commit
00943b7536
9 changed files with 108 additions and 109 deletions
|
|
@ -442,7 +442,6 @@ class InvenTreeStockItem extends InvenTreeModel {
|
|||
showTimeoutError(context);
|
||||
} else if (error is SocketException) {
|
||||
showServerError(
|
||||
context,
|
||||
I18N.of(context).connectionRefused,
|
||||
error.toString()
|
||||
);
|
||||
|
|
@ -458,7 +457,7 @@ class InvenTreeStockItem extends InvenTreeModel {
|
|||
if (response == null) return false;
|
||||
|
||||
if (response.statusCode != 200) {
|
||||
showStatusCodeError(context, response.statusCode);
|
||||
showStatusCodeError(response.statusCode);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue