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 cea708d commit 6277d7dCopy full SHA for 6277d7d
src/lib.rs
@@ -19,12 +19,12 @@ pub fn cli_print_error_chain<'a>(
19
&'a (dyn Error + 'static),
20
) -> Option<String>,
21
) {
22
- eprint!("Error: {component} exited with the following ");
+ let msg = format!("Error: {component} exited with the following");
23
if top_error.source().is_none() {
24
- error!("error:");
+ error!("{msg} error:");
25
error!(" {top_error}");
26
} else {
27
- error!("chain of errors:");
+ error!("{msg} chain of errors:");
28
std::iter::successors(Some(top_error), |sub_error| {
29
// Dereference necessary to mitigate rustc compiler bug.
30
// See <https://github.com/rust-lang/rust/issues/141673>
0 commit comments