Detect errors during transactions
3 - minor
Pull request ID:
Right now portions of a transaction can fail and the code doesn't check for this, so you can go through and have some portions succeed and others fail.
Change this to detect bad return codes and...do something.