Convert ShellError::CommandNotFound to named fields (#11094)

# Description

Part of #10700
This commit is contained in:
Eric Hodel
2023-11-19 12:31:28 -08:00
committed by GitHub
parent 07d7899a97
commit 08715e6308
5 changed files with 16 additions and 15 deletions

View File

@ -133,10 +133,9 @@ pub fn help_externs(
.into_pipeline_data(),
)
} else {
Err(ShellError::CommandNotFound(span(&[
rest[0].span,
rest[rest.len() - 1].span,
])))
Err(ShellError::CommandNotFound {
span: span(&[rest[0].span, rest[rest.len() - 1].span]),
})
}
}
}