update error to warning message