return the function on errors so that the errors wont stack