Callback to cbError when return is an error.