Skip to content

Commit

Permalink
pretty-print all errors instead of only top-level
Browse files Browse the repository at this point in the history
Related to #51. We should be able to iterate over the errors instead,
but this will do meanwhile.
  • Loading branch information
tmplt committed Nov 15, 2021
1 parent 9dfa667 commit b538978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cargo-rtic-scope/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ impl diag::DiagnosableError for RTICScopeError {

impl RTICScopeError {
pub fn render(&self) {
log::err(format!("{}", self)); // XXX only prints top-level error
log::err(format!("{:#?}", self)); // TODO iterator over errors instead

// print eventual hints
// XXX should we anyhow::Error::downcast somehow instead?
Expand Down

0 comments on commit b538978

Please sign in to comment.