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
9c9f510fdf
commit
38f43564e0
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue