simplify error callback data passing.