From e4b905e360901b974725660294a16b384bfa60d9 Mon Sep 17 00:00:00 2001 From: Liz Rice Date: Thu, 31 Aug 2017 14:43:59 +0100 Subject: [PATCH] =?UTF-8?q?Log=20when=20there=E2=80=99s=20no=20substitutio?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/util.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/util.go b/cmd/util.go index 686fb52..a89a1f0 100644 --- a/cmd/util.go +++ b/cmd/util.go @@ -243,6 +243,10 @@ func multiWordReplace(s string, subname string, sub string) string { func makeSubstitutions(s string, ext string, m map[string]string) string { for k, v := range m { subst := "$" + k + ext + if v == "" { + glog.V(2).Info(fmt.Sprintf("No subsitution for '%s'\n", subst)) + continue + } glog.V(1).Info(fmt.Sprintf("Substituting %s with '%s'\n", subst, v)) s = multiWordReplace(s, subst, v) }