add observability for windows

This commit is contained in:
Connor Peet
2022-11-15 20:35:38 -08:00
parent 1bf3323015
commit e996746b14
7 changed files with 79 additions and 51 deletions

View File

@@ -43,6 +43,17 @@ impl From<reqwest::Error> for WrappedError {
}
}
pub fn wrapdbg<T, S>(original: T, message: S) -> WrappedError
where
T: std::fmt::Debug,
S: Into<String>,
{
WrappedError {
message: message.into(),
original: format!("{:?}", original),
}
}
pub fn wrap<T, S>(original: T, message: S) -> WrappedError
where
T: Display,