Skip to content

Commit

Permalink
Avoid redefinition warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWielemaker committed Sep 4, 2019
1 parent b4d5518 commit d6402f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http_exception.pl
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
resource_error(E),
[connection(close)],
[]) :-
resource_error(E),
is_resource_error(E),
!.
map_exception_to_http_status(E,
bad_request(E2),
Expand All @@ -132,7 +132,7 @@
[connection(close)],
[]).

resource_error(error(resource_error(_), _)).
is_resource_error(error(resource_error(_), _)).

bad_request_exception(error(Error, Context)) :-
nonvar(Error),
Expand Down

0 comments on commit d6402f7

Please sign in to comment.