mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 19:46:25 +00:00
Handle OSError when attempting connection (#339)
This commit is contained in:
parent
bb781aaed5
commit
2c5ceeabdb
1 changed files with 4 additions and 0 deletions
|
|
@ -1078,6 +1078,10 @@ class InvenTreeAPI {
|
||||||
debug("TimeoutException at ${url}");
|
debug("TimeoutException at ${url}");
|
||||||
showTimeoutError(url);
|
showTimeoutError(url);
|
||||||
return null;
|
return null;
|
||||||
|
} on OSError catch (error) {
|
||||||
|
debug("OSError at ${url}: ${error.toString()}");
|
||||||
|
showServerError(url, L10().connectionRefused, error.toString());
|
||||||
|
return null;
|
||||||
} on CertificateException catch (error) {
|
} on CertificateException catch (error) {
|
||||||
debug("CertificateException at ${url}:");
|
debug("CertificateException at ${url}:");
|
||||||
debug(error.toString());
|
debug(error.toString());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue