From 06678499d4fdacfb583dd6ce7f0a13d1c4bf8ffc Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Sat, 15 Sep 2018 16:48:43 -0700 Subject: [PATCH] Add missing format arg. --- CHANGELOG | 4 ++++ cmd/kgz/main.go | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 04580b2..6fcb788 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +Release 1.2.1 - 2018-09-15 + ++ Add missing format argument to Errorf call in kgz. + Release 1.2.0 - 2018-09-15 + Adds the kgz command line utility. diff --git a/cmd/kgz/main.go b/cmd/kgz/main.go index 26949ee..1468786 100644 --- a/cmd/kgz/main.go +++ b/cmd/kgz/main.go @@ -113,7 +113,7 @@ func pathForUncompressing(source, dest string) (string, error) { source = filepath.Base(source) if !strings.HasSuffix(source, gzipExt) { - return "", errors.Errorf("%s is a not gzip-compressed file") + return "", errors.Errorf("%s is a not gzip-compressed file", source) } outFile := source[:len(source)-len(gzipExt)] outFile = filepath.Join(dest, outFile) @@ -127,7 +127,7 @@ func pathForCompressing(source, dest string) (string, error) { source = filepath.Base(source) if strings.HasSuffix(source, gzipExt) { - return "", errors.Errorf("%s is a gzip-compressed file") + return "", errors.Errorf("%s is a gzip-compressed file", source) } dest = filepath.Join(dest, source+gzipExt)