Skip to content

Commit

Permalink
Fixed marklogic-community#162: invoke REST error-handler for all REST…
Browse files Browse the repository at this point in the history
… exceptions
  • Loading branch information
grtjn committed Jan 28, 2016
1 parent fed20c4 commit 0707747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/roxy/error.xqy
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ declare function local:error($title as xs:string?, $heading, $msg)
</html>
};

if ($ex/error:code = "RESTAPI-EXTNERR") then
if (fn:starts-with($ex/error:code, "REST")) then
xdmp:invoke(
"/MarkLogic/rest-api/error-handler.xqy",
(xs:QName("error:errors"), $error:errors)
Expand Down

0 comments on commit 0707747

Please sign in to comment.