Simplify error handling code.