Update SOanswer.R

Fixed behaviour for warnings, errors.