Simplify error callback