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) { 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");