From 87d9ca7d06eaaba3a1643e196cc012905a36413b Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 4 Dec 2015 13:56:46 +0100 Subject: [PATCH] Print table only if there are entries --- src/ui/file.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ui/file.rs b/src/ui/file.rs index 27bac946..fe7ee83b 100644 --- a/src/ui/file.rs +++ b/src/ui/file.rs @@ -112,7 +112,12 @@ impl FilePrinter for TablePrinter { tab.add_row(row); } - tab.printstd(); + if i != 0 { + debug!("Printing {} table entries", i); + tab.printstd(); + } else { + debug!("Not printing table because there are zero entries"); + } } }