From 4ef9ae4b396b0eb37036d4008e8cb40e468dbe73 Mon Sep 17 00:00:00 2001 From: "Emma [it/its]@Rory&" Date: Fri, 9 Feb 2024 16:32:46 +0100 Subject: Apply syntax style to LibMatrix --- LibMatrix/MatrixException.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'LibMatrix/MatrixException.cs') diff --git a/LibMatrix/MatrixException.cs b/LibMatrix/MatrixException.cs index 6a0f352..86dbce4 100644 --- a/LibMatrix/MatrixException.cs +++ b/LibMatrix/MatrixException.cs @@ -23,7 +23,6 @@ public class MatrixException : Exception { public object GetAsObject() => new { ErrorCode, Error, SoftLogout, RetryAfterMs }; public string GetAsJson() => GetAsObject().ToJson(ignoreNull: true); - public override string Message => $"{ErrorCode}: {ErrorCode switch { // common @@ -62,4 +61,4 @@ public class MatrixException : Exception { "M_CANNOT_LEAVE_SERVER_NOTICE_ROOM" => $"Cannot leave server notice room: {Error}", _ => $"Unknown error: {new { ErrorCode, Error, SoftLogout, RetryAfterMs }.ToJson(ignoreNull: true)}" }}"; -} +} \ No newline at end of file -- cgit 1.4.1