changed log message from warning to error