check if Exception

This commit is contained in:
sneurlax 2023-07-27 13:11:16 -05:00
parent 2e9c5bde8e
commit 6ace239647

View file

@ -171,7 +171,11 @@ class Connection {
},
onError: (e) {
subscription?.cancel();
if (e is Exception) {
throw e;
} else {
throw Exception('Unknown error');
}
},
onDone: () {
print("DEBUG ON DONE");