I thought of calling the reject function only if there is something you want to do besides printing the error.