diff --git a/lib/book_my_gigs_web/users/users_controller.ex b/lib/book_my_gigs_web/users/users_controller.ex index d422f66..539c2c2 100644 --- a/lib/book_my_gigs_web/users/users_controller.ex +++ b/lib/book_my_gigs_web/users/users_controller.ex @@ -48,7 +48,7 @@ defmodule BookMyGigsWeb.UsersController do response = case Users.get_user_by_account_id(account_id) do - {:error, msg} -> msg + {:error, msg} -> %{error: msg} {:ok, user} -> user end