about summary refs log tree commit diff
path: root/LibMatrix/MatrixException.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-02-23 11:23:27 +0000
committerRory& <root@rory.gay>2024-02-23 11:23:27 +0000
commit3dfb7b81b0fe19d37a7bf1183e248ca10c56277c (patch)
tree52c36b45c41e32cddd90dfcd110a393158f55675 /LibMatrix/MatrixException.cs
parentApply syntax style to LibMatrix side projects (diff)
downloadLibMatrix-3dfb7b81b0fe19d37a7bf1183e248ca10c56277c.tar.xz
HS emulator
Diffstat (limited to '')
-rw-r--r--LibMatrix/MatrixException.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibMatrix/MatrixException.cs b/LibMatrix/MatrixException.cs
index 86dbce4..8ec8fd5 100644
--- a/LibMatrix/MatrixException.cs
+++ b/LibMatrix/MatrixException.cs
@@ -20,7 +20,7 @@ public class MatrixException : Exception {
 
     public string RawContent { get; set; }
 
-    public object GetAsObject() => new { ErrorCode, Error, SoftLogout, RetryAfterMs };
+    public object GetAsObject() => new { errcode = ErrorCode, error = Error, soft_logout = SoftLogout, retry_after_ms = RetryAfterMs };
     public string GetAsJson() => GetAsObject().ToJson(ignoreNull: true);
 
     public override string Message =>