changeset 465:33ec27ef4b6a

server side: adapt passing the async failure from server to browser side, according to the new class BridgeException
author souliane <souliane@mailoo.org>
date Sun, 08 Jun 2014 16:59:48 +0200
parents bea9788f3170
children 01880aa8ea2d
files src/server/server.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/server/server.py	Fri May 23 10:00:16 2014 +0200
+++ b/src/server/server.py	Sun Jun 08 16:59:48 2014 +0200
@@ -158,7 +158,7 @@
                 d.callback(args[0])
 
         def _errback(result):
-            d.errback(Failure(jsonrpclib.Fault(C.ERRNUM_BRIDGE_ERRBACK, unicode(result))))
+            d.errback(Failure(jsonrpclib.Fault(C.ERRNUM_BRIDGE_ERRBACK, result.classname)))
 
         kwargs["callback"] = _callback
         kwargs["errback"] = _errback