From 1eb8c6511ebc1c36d06fe3d2005c48d3081900f2 Mon Sep 17 00:00:00 2001 From: Muzzammil Shahid Date: Thu, 19 Dec 2024 18:32:21 +0500 Subject: [PATCH] Throw correct exception on abort --- lib/src/joiner.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }