Show More
@@ -142,13 +142,13 b' def exception_view(exc, request):' | |||
|
142 | 142 | |
|
143 | 143 | fault_message = 'undefined error' |
|
144 | 144 | if isinstance(exc, JSONRPCError): |
|
145 | fault_message = exc.message | |
|
145 | fault_message = safe_str(exc.message) | |
|
146 | 146 | log.debug('json-rpc error rpc_id:%s "%s"', rpc_id, fault_message) |
|
147 | 147 | elif isinstance(exc, JSONRPCValidationError): |
|
148 | 148 | colander_exc = exc.colander_exception |
|
149 | 149 | # TODO(marcink): think maybe of nicer way to serialize errors ? |
|
150 | 150 | fault_message = colander_exc.asdict() |
|
151 | log.debug('json-rpc error rpc_id:%s "%s"', rpc_id, fault_message) | |
|
151 | log.debug('json-rpc colander error rpc_id:%s "%s"', rpc_id, fault_message) | |
|
152 | 152 | elif isinstance(exc, JSONRPCForbidden): |
|
153 | 153 | fault_message = 'Access was denied to this resource.' |
|
154 | 154 | log.warning('json-rpc forbidden call rpc_id:%s "%s"', rpc_id, fault_message) |
General Comments 0
You need to be logged in to leave comments.
Login now