add additional transaction error handling
Merge pull request #206 from tongxiang/donations-error

add additional transaction error handling