Add error message on exception in database creation for issue96

This commit is contained in:
Cédric Krier committed 2008-06-08 19:46:01 +02:00
1 parent e8f8cf6913
commit 41f42e8650
1 file changed
+3 -2
+3 -2
View File
@@ -256,9 +256,10 @@ class DBCreate(object):
try:
users = rpc.db_exec(host, int(port), 'create', passwd, dbname,
langreal)
except:
except Exception, exception:
common.warning(_('The server crashed during installation.\n' \
'We suggest you to drop this database.'), parent,
'We suggest you to drop this database.\n' \
'Error message:\n') + str(exception[0]), parent,
_("Error during database creation!"))
return False
dialog = glade.XML(GLADE, "dia_dbcreate_ok", gettext.textdomain())