include exception if non-null

This commit is contained in:
sneurlax 2023-07-27 13:14:19 -05:00
parent 6ace239647
commit 40d9a8aa9e

View file

@ -174,7 +174,7 @@ class Connection {
if (e is Exception) { if (e is Exception) {
throw e; throw e;
} else { } else {
throw Exception('Unknown error'); throw Exception(e ?? 'Error in `subscription` socket!.listen');
} }
}, },
onDone: () { onDone: () {