reveal the complete exception from the dbClient

reviewed-by: Edison Su
This commit is contained in:
Prasanna Santhanam 2012-04-04 16:40:44 +05:30
parent 9c9f510fdf
commit 38f43564e0
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class dbConnection(object):
resultRow.append(r)
return resultRow
except pymysql.MySQLError, e:
raise cloudstackException.dbException("db Exception:%s"%e[1])
raise cloudstackException.dbException("db Exception:%s"%e)
except:
raise cloudstackException.internalError(sys.exc_info())
finally: