mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 12:33:35 +01:00
add observability for windows
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user