mirror of
https://github.com/ash-project/ash_admin.git
synced 2024-09-17 03:43:26 +12:00
improvement: don't log forbidden errors
This commit is contained in:
parent
e7314db928
commit
c549656060
1 changed files with 4 additions and 1 deletions
|
@ -288,12 +288,15 @@ defmodule AshAdmin.PageLive do
|
|||
{:ok, record} ->
|
||||
{:ok, record}
|
||||
|
||||
{:error, %Ash.Error.Forbidden{}} ->
|
||||
{:ok, record}
|
||||
|
||||
{:error, error} ->
|
||||
Logger.warning(
|
||||
"Error while loading relationship #{inspect(rel)} on admin dashboard\n: #{Exception.format(:error, error)}"
|
||||
)
|
||||
|
||||
record
|
||||
{:ok, record}
|
||||
end
|
||||
|
||||
_rel, other ->
|
||||
|
|
Loading…
Reference in a new issue