Skip to content

Commit

Permalink
Ensure error is not null before converting it to a SquadronException
Browse files Browse the repository at this point in the history
  • Loading branch information
d-markey committed Aug 28, 2024
1 parent fad409c commit 7e951e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/_impl/web/_channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Future<Channel> openChannel(
SquadronException? error;
if (err is List) {
error = exceptionManager.deserialize(err);
} else {
} else if (err != null) {
error = SquadronException.from(err);
}
error ??= SquadronErrorExt.create('Unexpected error');
Expand Down

0 comments on commit 7e951e7

Please sign in to comment.