diff --git a/lib/api.dart b/lib/api.dart index 7a41572d..be2ba808 100644 --- a/lib/api.dart +++ b/lib/api.dart @@ -1078,6 +1078,10 @@ class InvenTreeAPI { debug("TimeoutException at ${url}"); showTimeoutError(url); return null; + } on OSError catch (error) { + debug("OSError at ${url}: ${error.toString()}"); + showServerError(url, L10().connectionRefused, error.toString()); + return null; } on CertificateException catch (error) { debug("CertificateException at ${url}:"); debug(error.toString());