diff options
author | Rory& <root@rory.gay> | 2024-02-23 11:23:27 +0000 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-02-23 11:23:27 +0000 |
commit | 3dfb7b81b0fe19d37a7bf1183e248ca10c56277c (patch) | |
tree | 52c36b45c41e32cddd90dfcd110a393158f55675 /LibMatrix/MatrixException.cs | |
parent | Apply syntax style to LibMatrix side projects (diff) | |
download | LibMatrix-3dfb7b81b0fe19d37a7bf1183e248ca10c56277c.tar.xz |
HS emulator
Diffstat (limited to '')
-rw-r--r-- | LibMatrix/MatrixException.cs | 2 |
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 => |