mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Catch errors (#469)
* Catch error comparing dropdown items * Update version number and release notes * Data conversion * Catch error when loading image from network * Suppress error reporting for statusCode -1
This commit is contained in:
parent
4ef2e43bf3
commit
d152475de4
6 changed files with 53 additions and 44 deletions
|
|
@ -629,15 +629,17 @@ class InvenTreeModel {
|
|||
|
||||
if (!response.isValid() || response.data == null || response.data is! Map) {
|
||||
|
||||
// Report error
|
||||
reportModelError(
|
||||
"InvenTreeModel.getModel() returned invalid response",
|
||||
response,
|
||||
context: {
|
||||
"filters": filters.toString(),
|
||||
"pk": pk,
|
||||
}
|
||||
);
|
||||
if (response.statusCode != -1) {
|
||||
// Report error
|
||||
reportModelError(
|
||||
"InvenTreeModel.getModel() returned invalid response",
|
||||
response,
|
||||
context: {
|
||||
"filters": filters.toString(),
|
||||
"pk": pk,
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
showServerError(
|
||||
url,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue