We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c901fd commit 2ba3897Copy full SHA for 2ba3897
sdk/core/typespec/src/error/mod.rs
@@ -304,11 +304,7 @@ impl Display for Error {
304
Repr::Simple(kind) => std::fmt::Display::fmt(&kind, f),
305
Repr::SimpleMessage(_, message) => f.write_str(message),
306
Repr::Custom(Custom { error, .. }) => std::fmt::Display::fmt(&error, f),
307
- Repr::CustomMessage(Custom { error, .. }, message) => {
308
- f.write_str(message)?;
309
- f.write_str(": ")?;
310
- std::fmt::Display::fmt(&error, f)
311
- }
+ Repr::CustomMessage(_, message) => f.write_str(message),
312
}
313
314
0 commit comments