mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-20 05:13:33 +12:00
fix: show all errors on show_raised_errors
This commit is contained in:
parent
c9c7602c9b
commit
5a6bc0cd1d
1 changed files with 13 additions and 3 deletions
|
@ -1461,9 +1461,19 @@ defmodule AshGraphql.Graphql.Resolver do
|
|||
"`#{uuid}`: AshGraphql.Error not implemented for error:\n\n#{Exception.format(:error, error, stacktrace)}"
|
||||
)
|
||||
|
||||
%{
|
||||
message: "Something went wrong. Unique error id: `#{uuid}`"
|
||||
}
|
||||
if AshGraphql.Api.Info.show_raised_errors?(api) do
|
||||
%{
|
||||
message: """
|
||||
Raised error: #{uuid}
|
||||
|
||||
#{Exception.format(:error, error, stacktrace)}"
|
||||
"""
|
||||
}
|
||||
else
|
||||
%{
|
||||
message: "Something went wrong. Unique error id: `#{uuid}`"
|
||||
}
|
||||
end
|
||||
end
|
||||
end)}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue