Expose error callback