mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-26 06:49:22 +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(e.toString());
|
||||||
print("Could not execute a request!");
|
print("Could not execute a request!");
|
||||||
return APIResponse(-1, null);
|
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