diff --git a/sdk/typespec/src/error/mod.rs b/sdk/typespec/src/error/mod.rs index 1647d7cd2f..a964f2ef15 100644 --- a/sdk/typespec/src/error/mod.rs +++ b/sdk/typespec/src/error/mod.rs @@ -247,6 +247,12 @@ impl From for Error { } } +impl From for Error { + fn from(error: std::str::ParseBoolError) -> Self { + Self::new(ErrorKind::DataConversion, error) + } +} + impl From for Error { fn from(error: std::num::ParseIntError) -> Self { Self::new(ErrorKind::DataConversion, error)