shield shell output interpretation from sftp error pattern