# HG changeset patch # User Adrien Di Mascio # Date 1267166658 -3600 # Node ID 6a71fc0b42749946745deb34b61807e473a6ded5 # Parent 2bd3d03721f3b94624e75dbca517e8c185273014 [web] fix #724769: Use RemoteCallFailed in the publisher's error_handler On json_request, errors handled by the publisher should raise RemoteCallFailed exceptions instead of standard StatusResponse so that errbacks get called normally on the client side. diff -r 2bd3d03721f3 -r 6a71fc0b4274 web/application.py --- a/web/application.py Fri Feb 26 07:26:47 2010 +0100 +++ b/web/application.py Fri Feb 26 07:44:18 2010 +0100 @@ -395,6 +395,8 @@ req.remove_header('Etag') req.message = None req.reset_headers() + if req.json_request: + raise RemoteCallFailed(unicode(ex)) try: req.data['ex'] = ex if tb: