1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 21:09:21 +00:00

Catch properly network exceptions

This commit is contained in:
Pierre HUBERT 2019-04-27 09:29:38 +02:00
parent 0579397ba7
commit 08669d2632

View File

@ -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);
} }
} }