convert error to warning