Fix transaction error

Get more information back when a transaction error occurs.