When custom error is created in check_resource_exists, use it

This commit is contained in:
Colin Adams
2013-10-01 08:40:16 +01:00
parent f14728c1a7
commit 8fe7f4db82

View File

@@ -484,6 +484,8 @@ feature -- Execution
check_resource_exists (req, a_helper) check_resource_exists (req, a_helper)
if a_helper.resource_exists then if a_helper.resource_exists then
a_helper.execute_existing_resource (req, res, Current) a_helper.execute_existing_resource (req, res, Current)
elseif req.error_handler.has_error then
a_helper.write_error_response (req, res)
else else
if attached req.http_if_match as l_if_match and then l_if_match.same_string ("*") then if attached req.http_if_match as l_if_match and then l_if_match.same_string ("*") then
a_helper.handle_precondition_failed (req, res) a_helper.handle_precondition_failed (req, res)