Skip to content

Commit 02b4bd9

Browse files
committed
[webApi] properly catch error during connection
1 parent a14dfb3 commit 02b4bd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/lib/service/substrate_api/api.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ class Api {
9292
} else {
9393
Log.p('[webApi] connection failed will try again...');
9494
}
95-
}).onError((error, stackTrace) {
95+
}).catchError((dynamic error) {
9696
// mostly timeouts if the endpoint is not available
97-
Log.e('[webApi] error during connection: $error}', '', stackTrace);
97+
Log.e('[webApi] error during connection: $error}');
9898
}).whenComplete(() => _connecting == null);
9999
}
100100

0 commit comments

Comments
 (0)