Pass errors to the callback