From b53897808ad49d38d6933f6c951bbb3cf81963db Mon Sep 17 00:00:00 2001
From: Viktor Sonesten <v@tmplt.dev>
Date: Tue, 16 Nov 2021 00:17:05 +0100
Subject: [PATCH] pretty-print all errors instead of only top-level

Related to #51. We should be able to iterate over the errors instead,
but this will do meanwhile.
---
 cargo-rtic-scope/src/main.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cargo-rtic-scope/src/main.rs b/cargo-rtic-scope/src/main.rs
index 6b7a0aa..e6ad23e 100644
--- a/cargo-rtic-scope/src/main.rs
+++ b/cargo-rtic-scope/src/main.rs
@@ -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?