git » sdk » commit 4b2faf0

Chat: More detail in error message

author Matthew Wild
2024-12-02 14:18:10 UTC
committer Matthew Wild
2024-12-02 14:18:10 UTC
parent 4180d551d748c7880e2e7d318a3f0d029586fef5

Chat: More detail in error message

snikket/Chat.hx +1 -1

diff --git a/snikket/Chat.hx b/snikket/Chat.hx
index fdd1590..a5fb50c 100644
--- a/snikket/Chat.hx
+++ b/snikket/Chat.hx
@@ -1478,7 +1478,7 @@ class SerializedChat {
 			channel.disco = disco ?? new Caps("", [], ["http://jabber.org/protocol/muc"]);
 			channel;
 		} else {
-			throw "Unknown class: " + klass;
+			throw "Unknown class of " + chatId + ": " + klass;
 		}
 		if (displayName != null) chat.displayName = displayName;
 		if (avatarSha1 != null) chat.setAvatarSha1(avatarSha1);