mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +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) {
|
||||
subscription?.cancel();
|
||||
throw e;
|
||||
if (e is Exception) {
|
||||
throw e;
|
||||
} else {
|
||||
throw Exception('Unknown error');
|
||||
}
|
||||
},
|
||||
onDone: () {
|
||||
print("DEBUG ON DONE");
|
||||
|
|
Loading…
Reference in a new issue