[FIX] DB creation failure : Better message attached to the exception
lp bug: https://launchpad.net/bugs/885664 fixed bzr revid: support@serpentcs.com-20111103131116-ryc0710gm170drx9
This commit is contained in:
parent
a2a6c33951
commit
ff7dbe4941
|
@ -202,7 +202,7 @@ class Database(openerpweb.Controller):
|
|||
except xmlrpclib.Fault, e:
|
||||
if e.faultCode and e.faultCode.split(':')[0] == 'AccessDenied':
|
||||
return {'error': e.faultCode, 'title': 'Create Database'}
|
||||
return {'error': 'Could not create database !', 'title': 'Create Database'}
|
||||
return {'error': 'Could not create database !<br/>' + e.faultCode, 'title': 'Create Database'}
|
||||
|
||||
@openerpweb.jsonrequest
|
||||
def drop(self, req, fields):
|
||||
|
|
Loading…
Reference in New Issue