mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-09-19 05:48:54 +00:00
Catch properly network exceptions
This commit is contained in:
@@ -63,6 +63,10 @@ class APIHelper {
|
||||
print(e.toString());
|
||||
print("Could not execute a request!");
|
||||
return APIResponse(-1, null);
|
||||
} on DioError catch(e){
|
||||
print(e.toString());
|
||||
print("Could not execute a request (Dio error)!");
|
||||
return APIResponse(-1, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user