Skip to content

Commit

Permalink
send exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
juuwel committed May 29, 2024
1 parent c144d82 commit 26e4201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/GlobalExceptionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static void Handle(this Exception ex, IWebSocketConnection socket, string
RegisterDeviceException => new ServerRespondsRegisterDevice { Error = ex.Message },
NotAuthenticatedException => new ServerRespondsNotAuthenticated { Error = ex.Message },
InvalidFileFormatException => new ServerRejectsInvalidFile { Error = ex.Message },
_ => new ServerSendsErrorMessage { Error = message ?? ex.Message }
_ => new ServerSendsErrorMessage { Error = ex.Message }
};
else
{
Expand Down

0 comments on commit 26e4201

Please sign in to comment.