Minor change. Adding a logError call