[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:
Serpent Consulting Services 2011-11-03 18:41:16 +05:30
parent a2a6c33951
commit ff7dbe4941
1 changed files with 1 additions and 1 deletions

View File

@ -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):