From 8458a6f5dc951be4fa6c2569fd683583a1465b47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabrielle=20Guimar=C3=A3es=20de=20Oliveira?= Date: Wed, 29 May 2024 01:25:58 -0300 Subject: [PATCH] feat(sol-driver): add fancy errors --- sol-driver/src/suite.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sol-driver/src/suite.rs b/sol-driver/src/suite.rs index 905c2a9..698bd0c 100644 --- a/sol-driver/src/suite.rs +++ b/sol-driver/src/suite.rs @@ -127,7 +127,11 @@ pub fn push_fancy_errors( output: Expect, outputs: &[Vec>], ) -> sol_eyre::Result<()> { - todo!(); + writeln!(output, "Fancy errors:")?; + for error in outputs.iter().flatten() { + writeln!(output, "{error:?}")?; + } + Ok(()) } /// Prints a debug report of the given `type_table`.