Added proper error log message