From 94150ddd76df86c5d37e9d9dfc8f796f3547cdee Mon Sep 17 00:00:00 2001 From: Felix Date: Fri, 16 Aug 2019 14:23:03 +0100 Subject: [PATCH] better error catching --- lib/common/apifunctions/request_login_api.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/common/apifunctions/request_login_api.dart b/lib/common/apifunctions/request_login_api.dart index 3d3bfcb..2f74052 100644 --- a/lib/common/apifunctions/request_login_api.dart +++ b/lib/common/apifunctions/request_login_api.dart @@ -61,7 +61,8 @@ Future requestLoginAPI( return null; } - } catch (_) { + } catch (error) { + debugPrint(error.toString()); _incorrectDialog(context, false); } }