-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send errors in backend using new error translation format
- Remove pong interval for admin client
- Loading branch information
Showing
6 changed files
with
28 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package api | ||
|
||
type ErrorCode string | ||
|
||
const ( | ||
ROOM_NOT_FOUND ErrorCode = "errors.room_not_found" | ||
PARSE_ERROR ErrorCode = "errors.parse_error" | ||
GAME_CLOSED ErrorCode = "errors.game_closed" | ||
HOST_QUIT ErrorCode = "errors.host_quit" | ||
IMAGE_TOO_LARGE ErrorCode = "errors.image_too_large" | ||
CSV_TOO_LARGE ErrorCode = "errors.csv_too_large" | ||
CSV_INVALID_FORMAT ErrorCode = "errors.csv_invalid_format" | ||
UNKNOWN_FILE_TYPE ErrorCode = "errors.unknown_file_type" | ||
SERVER_ERROR ErrorCode = "errors.server_error" | ||
BUZZER_REGISTER_ERROR ErrorCode = "errors.buzzer_register" | ||
SPECTATOR_REGISTER_ERROR ErrorCode = "errors.spectator_register" | ||
CHANGE_LANG_ERROR ErrorCode = "errors.change_lang" | ||
CONNECTION_LOST ErrorCode = "errors.connection_lost" | ||
MISSING_INPUT ErrorCode = "errors.missing_input" | ||
UNABLE_TO_CONNECT ErrorCode = "errors.unable_to_connect" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters