From b93c5e7e284c73c97192bf4ff7002c4b396ed2e9 Mon Sep 17 00:00:00 2001 From: Rory& Date: Mon, 16 Sep 2024 08:43:42 +0200 Subject: Sync optimisation changes --- Tests/LibMatrix.HomeserverEmulator/Services/RoomStore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Tests') diff --git a/Tests/LibMatrix.HomeserverEmulator/Services/RoomStore.cs b/Tests/LibMatrix.HomeserverEmulator/Services/RoomStore.cs index 5cdc3ab..c798cce 100644 --- a/Tests/LibMatrix.HomeserverEmulator/Services/RoomStore.cs +++ b/Tests/LibMatrix.HomeserverEmulator/Services/RoomStore.cs @@ -137,7 +137,7 @@ public class RoomStore { public Room(string roomId) { if (string.IsNullOrWhiteSpace(roomId)) throw new ArgumentException("Value cannot be null or whitespace.", nameof(roomId)); - if (roomId[0] != '!') throw new ArgumentException("Room ID must start with !", nameof(roomId)); + if (roomId[0] != '!') throw new ArgumentException($"Room ID must start with '!', provided value: {roomId ?? "null"}", nameof(roomId)); RoomId = roomId; Timeline = new(); AccountData = new(); -- cgit 1.4.1