Skip to content

Commit d6402f7

Browse files
committed
Avoid redefinition warning.
1 parent b4d5518 commit d6402f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http_exception.pl

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
resource_error(E),
119119
[connection(close)],
120120
[]) :-
121-
resource_error(E),
121+
is_resource_error(E),
122122
!.
123123
map_exception_to_http_status(E,
124124
bad_request(E2),
@@ -132,7 +132,7 @@
132132
[connection(close)],
133133
[]).
134134

135-
resource_error(error(resource_error(_), _)).
135+
is_resource_error(error(resource_error(_), _)).
136136

137137
bad_request_exception(error(Error, Context)) :-
138138
nonvar(Error),

0 commit comments

Comments
 (0)