Skip to content

Commit 50def33

Browse files
authored
fix: remove default case for class: :forbidden (#367)
1 parent 5047433 commit 50def33

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/ash_json_api/error/error.ex

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,6 @@ defmodule AshJsonApi.Error do
3131
[error]
3232
end
3333

34-
def to_json_api_errors(_domain, _resource, %{class: :forbidden} = error, _type) do
35-
[
36-
%__MODULE__{
37-
id: Ash.UUID.generate(),
38-
status_code: class_to_status(error.class),
39-
code: "forbidden",
40-
title: "Forbidden",
41-
detail: "forbidden"
42-
}
43-
]
44-
end
45-
4634
def to_json_api_errors(domain, resource, error, type) do
4735
if AshJsonApi.ToJsonApiError.impl_for(error) do
4836
error

0 commit comments

Comments
 (0)