Fixing error log messaging