Skip to content

Commit

Permalink
Throw correct exception on abort
Browse files Browse the repository at this point in the history
  • Loading branch information
muzzammilshahid committed Dec 19, 2024
1 parent 4a32875 commit 1eb8c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/joiner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Joiner {
_state = stateAuthenticateSent;
return authenticate;
} else if (msg is Abort) {
throw Exception("received abort");
throw ApplicationError(msg.reason, args: msg.args, kwargs: msg.kwargs);
} else {
throw ProtocolError("received ${msg.runtimeType} message and session is not established yet");
}
Expand Down

0 comments on commit 1eb8c65

Please sign in to comment.