aboutsummaryrefslogtreecommitdiff
path: root/apps/styx_web/src/styx_web_kratos_flow.erl
diff options
context:
space:
mode:
Diffstat (limited to 'apps/styx_web/src/styx_web_kratos_flow.erl')
-rw-r--r--apps/styx_web/src/styx_web_kratos_flow.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/styx_web/src/styx_web_kratos_flow.erl b/apps/styx_web/src/styx_web_kratos_flow.erl
index c889794..edcf421 100644
--- a/apps/styx_web/src/styx_web_kratos_flow.erl
+++ b/apps/styx_web/src/styx_web_kratos_flow.erl
@@ -21,5 +21,5 @@ get_(Req0, State = #{page_title := PageTitle, template := Template}, {ok, Flow =
Html = styx_web:render(Req0, Template, Assigns),
Req = styx_web:reply_html(Req0, 200, Html),
{ok, Req, State};
-get_(Req, State, {error, Error = #{<<"code">> := Code, <<"status">> := Status, <<"message">> := Msg}}) ->
+get_(Req, _State, {error, Error = #{<<"code">> := Code, <<"status">> := Status, <<"message">> := Msg}}) ->
styx_web_error:init(Req, #{code => Code, status => Status, message => maps:get(<<"reason">>, Error, Msg)}).