Replace error to warn