add error field in tx, because exceptions cannot be passed by plugins