Return the error in the callback