Fix app registration error reporting

This commit is contained in:
Yegor Vialov 2020-05-05 12:20:51 +00:00
parent 45fb637d48
commit 5629215229

View File

@ -65,7 +65,11 @@ class MobileAppIntegrationManager {
}); });
}).catchError((e) { }).catchError((e) {
completer.complete(); completer.complete();
Logger.e("Error registering the app: $e"); if (e is http.Response) {
Logger.e("Error registering the app: ${e.statusCode}: ${e.body}");
} else {
Logger.e("Error registering the app: ${e?.toString()}");
}
}); });
return completer.future; return completer.future;
} else { } else {