API error messages now use snackIcon

- Press "details" for further error information
- Is nice
This commit is contained in:
Oliver Walters 2021-02-17 08:00:41 +11:00
parent 8ae4d2b584
commit 00943b7536
9 changed files with 108 additions and 109 deletions

View file

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