From 6fedbb98f5029b7be40a712f13ce3283703aad22 Mon Sep 17 00:00:00 2001 From: 50U10FCA7 <31173478+50U10FCA7@users.noreply.github.com> Date: Mon, 4 Dec 2023 09:30:28 -0500 Subject: [PATCH] Fix ignored verbosity when printing `World` on hook/background step failure (#313) Co-authored-by: 50U10FCA7 --- src/writer/basic.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/writer/basic.rs b/src/writer/basic.rs index 55ee3309..63914afa 100644 --- a/src/writer/basic.rs +++ b/src/writer/basic.rs @@ -428,6 +428,7 @@ impl Basic { format!("{w:#?}"), self.indent.saturating_sub(3) + 3, )) + .filter(|_| self.verbosity.shows_world()) .unwrap_or_default(), indent = " ".repeat(self.indent.saturating_sub(3)), ))) @@ -1009,6 +1010,7 @@ impl Basic { format!("{w:#?}"), self.indent.saturating_sub(3) + 3, )) + .filter(|_| self.verbosity.shows_world()) .unwrap_or_default(), ));