From cd226af651ef42159217de9d18dcf573284ce3c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Tue, 12 Mar 2019 23:52:04 +0100 Subject: [PATCH] Fixed go test findings on method usage --- internal/pkg/localFileStructure/imageList.go | 2 +- internal/pkg/piwigo/PiwigoContext.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/pkg/localFileStructure/imageList.go b/internal/pkg/localFileStructure/imageList.go index a8b249d..0737637 100644 --- a/internal/pkg/localFileStructure/imageList.go +++ b/internal/pkg/localFileStructure/imageList.go @@ -52,7 +52,7 @@ func GetImageList(fileSystem map[string]*FilesystemNode) ([]*ImageNode, error) { case <-finished: case err := <-errChannel: if err != nil { - logrus.Errorf("Error during local image processing: %S", err) + logrus.Errorf("Error during local image processing: %s", err) return nil, err } } diff --git a/internal/pkg/piwigo/PiwigoContext.go b/internal/pkg/piwigo/PiwigoContext.go index e2f5d6e..23f406a 100644 --- a/internal/pkg/piwigo/PiwigoContext.go +++ b/internal/pkg/piwigo/PiwigoContext.go @@ -66,7 +66,7 @@ func (context *PiwigoContext) postForm(formData url.Values) (resp *http.Response client := http.Client{Jar: context.Cookies} response, err := client.PostForm(context.url, formData) if err != nil { - logrus.Errorln("The HTTP request failed with error %s", err) + logrus.Errorf("The HTTP request failed with error %s", err) return nil, err } return response, nil