Check for errors after a prepare-induced flush().