Error checking and reporting for transactions