Skip to content

Commit 3ca9dc6

Browse files
Added status codes information
1 parent 3d5e37d commit 3ca9dc6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/cadet_web/controllers/user_controller.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ defmodule CadetWeb.UserController do
4242
case Cadet.GameStates.update(user, new_game_states) do
4343
{:ok, nil} ->
4444
text(conn, "OK")
45+
4546
{:error, {status, message}} ->
4647
conn
4748
|> put_status(status)

0 commit comments

Comments
 (0)