Simplify error handle.