mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-18 02:07:43 +00:00
check if Exception
This commit is contained in:
parent
2e9c5bde8e
commit
6ace239647
1 changed files with 5 additions and 1 deletions
|
@ -171,7 +171,11 @@ class Connection {
|
||||||
},
|
},
|
||||||
onError: (e) {
|
onError: (e) {
|
||||||
subscription?.cancel();
|
subscription?.cancel();
|
||||||
|
if (e is Exception) {
|
||||||
throw e;
|
throw e;
|
||||||
|
} else {
|
||||||
|
throw Exception('Unknown error');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onDone: () {
|
onDone: () {
|
||||||
print("DEBUG ON DONE");
|
print("DEBUG ON DONE");
|
||||||
|
|
Loading…
Reference in a new issue