[FIX] misreading of the spec: the 32099..-32000 range is for *server* errors, not *application* errors
bzr revid: xmo@openerp.com-20110317141813-ywn7uize8z04kvee
This commit is contained in:
@@ -114,7 +114,7 @@ class JsonRequest(object):
|
||||
result = method(controller, self, **self.parse(request))
|
||||
except OpenERPUnboundException:
|
||||
error = {
|
||||
'code': -32075,
|
||||
'code': 1,
|
||||
'message': "OpenERP Session Invalid",
|
||||
'data': {
|
||||
'type': 'session_invalid',
|
||||
@@ -123,7 +123,7 @@ class JsonRequest(object):
|
||||
}
|
||||
except xmlrpclib.Fault, e:
|
||||
error = {
|
||||
'code': -32000,
|
||||
'code': 25,
|
||||
'message': "OpenERP Server Error",
|
||||
'data': {
|
||||
'type': "server_exception",
|
||||
@@ -134,7 +134,7 @@ class JsonRequest(object):
|
||||
}
|
||||
except Exception:
|
||||
error = {
|
||||
'code': -32050,
|
||||
'code': 50,
|
||||
'message': "OpenERP WebClient Error",
|
||||
'data': {
|
||||
'type': 'client_exception',
|
||||
|
||||
Reference in New Issue
Block a user