mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 12:59:21 +00:00
Catch properly network exceptions
This commit is contained in:
parent
0579397ba7
commit
08669d2632
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user