From 42056f7a321a73c8e9346864c3a9c55f0932797a Mon Sep 17 00:00:00 2001 From: Anton Schirg Date: Wed, 29 Aug 2018 19:25:34 +0200 Subject: [PATCH] status: do not show problem field when none exists --- client/status.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/status.go b/client/status.go index c9235d5..62cd7bc 100644 --- a/client/status.go +++ b/client/status.go @@ -167,8 +167,10 @@ func (t *tui) draw() { } t.printf("Status: %s", rep.Status) t.newline() - t.printf("Problem: %s", rep.Problem) - t.newline() + if (rep.Problem != "") { + t.printf("Problem: %s", rep.Problem) + t.newline() + } for _, fs := range rep.Completed { printFilesystem(fs, t)