2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 02:05:29 +00:00

edit stock item

- Render choice fields
This commit is contained in:
Oliver
2021-07-26 22:26:56 +10:00
parent e8cb002e3c
commit 978cefd6bf
6 changed files with 86 additions and 20 deletions

View File

@ -599,8 +599,6 @@ class InvenTreeAPI {
Uri? _uri = Uri.tryParse(_url);
print("apiRequest ${method} -> ${url}");
if (_uri == null) {
showServerError(L10().invalidHost, L10().invalidHostDetails);
return null;
@ -627,12 +625,15 @@ class InvenTreeAPI {
return _request;
} on SocketException catch (error) {
print("SocketException at ${url}: ${error.toString()}");
showServerError(L10().connectionRefused, error.toString());
return null;
} on TimeoutException {
print("TimeoutException at ${url}");
showTimeoutError();
return null;
} catch (error, stackTrace) {
print("Server error at ${url}: ${error.toString()}");
showServerError(L10().serverError, error.toString());
sentryReportError(error, stackTrace);
return null;