fix: show all errors on show_raised_errors

This commit is contained in:
Zach Daniel 2022-12-13 17:47:58 -05:00
parent c9c7602c9b
commit 5a6bc0cd1d

View file

@ -1461,9 +1461,19 @@ defmodule AshGraphql.Graphql.Resolver do
"`#{uuid}`: AshGraphql.Error not implemented for error:\n\n#{Exception.format(:error, error, stacktrace)}" "`#{uuid}`: AshGraphql.Error not implemented for error:\n\n#{Exception.format(:error, error, stacktrace)}"
) )
%{ if AshGraphql.Api.Info.show_raised_errors?(api) do
message: "Something went wrong. Unique error id: `#{uuid}`" %{
} message: """
Raised error: #{uuid}
#{Exception.format(:error, error, stacktrace)}"
"""
}
else
%{
message: "Something went wrong. Unique error id: `#{uuid}`"
}
end
end end
end)} end)}
end end