mirror of https://github.com/apache/cloudstack.git
reveal the complete exception from the dbClient
reviewed-by: Edison Su
This commit is contained in:
parent
d30effc0ad
commit
80c624a3d9
|
|
@ -42,7 +42,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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue