about summary refs log tree commit diff
path: root/MatrixRoomUtils.Core/MatrixException.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MatrixRoomUtils.Core/MatrixException.cs')
-rw-r--r--MatrixRoomUtils.Core/MatrixException.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MatrixRoomUtils.Core/MatrixException.cs b/MatrixRoomUtils.Core/MatrixException.cs
index 3df70e1..50fae20 100644
--- a/MatrixRoomUtils.Core/MatrixException.cs
+++ b/MatrixRoomUtils.Core/MatrixException.cs
@@ -52,6 +52,6 @@ public class MatrixException : Exception {
             "M_EXCLUSIVE" => "The resource being requested is reserved by an application service, or the application service making the request has not created the resource: " + Error,
             "M_RESOURCE_LIMIT_EXCEEDED" => "Exceeded resource limit: " + Error,
             "M_CANNOT_LEAVE_SERVER_NOTICE_ROOM" => "Cannot leave server notice room: " + Error,
-            _ => "Unknown error: " + new { ErrorCode, Error, SoftLogout, RetryAfterMs }.ToJson()
+            _ => "Unknown error: " + new { ErrorCode, Error, SoftLogout, RetryAfterMs }.ToJson(ignoreNull: true)
         };
 }
\ No newline at end of file