Skip to content

Commit

Permalink
Merge pull request #2 from lnx1337/bugfix/handler
Browse files Browse the repository at this point in the history
se anade handler
  • Loading branch information
alvarolizama authored Nov 8, 2017
2 parents f487477 + ca67d07 commit 2390d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resuelve_auth_plug.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ defmodule ResuelveAuth.Plugs.TokenAuth do
conn
|> assign(:session, data)
{:error, reason} ->
send_resp(conn, 401, Poison.encode!(%{error: reason}))
handler.errors(conn, reason)
end
end
end

0 comments on commit 2390d1a

Please sign in to comment.