Fixed typo that was preventing error messages from getting pushed to console