Add to xml command (#2141) (#2155)

This commit is contained in:
Warren Seine
2020-07-24 09:41:22 +02:00
committed by GitHub
parent 2d3b1e090a
commit 55a2f284d9
10 changed files with 328 additions and 1 deletions

View File

@ -833,6 +833,18 @@ impl std::convert::From<std::io::Error> for ShellError {
}
}
impl std::convert::From<std::string::FromUtf8Error> for ShellError {
fn from(input: std::string::FromUtf8Error) -> ShellError {
ShellError::untagged_runtime_error(format!("{}", input))
}
}
impl std::convert::From<std::str::Utf8Error> for ShellError {
fn from(input: std::str::Utf8Error) -> ShellError {
ShellError::untagged_runtime_error(format!("{}", input))
}
}
impl std::convert::From<serde_yaml::Error> for ShellError {
fn from(input: serde_yaml::Error) -> ShellError {
ShellError::untagged_runtime_error(format!("{:?}", input))