add back else clause
Add back else clause after realizing the error check doesn't return after logging.