diff --git a/lib/src/joiner.dart b/lib/src/joiner.dart index c41e0cd..f8f0a70 100644 --- a/lib/src/joiner.dart +++ b/lib/src/joiner.dart @@ -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"); }