From 79bad7258fb6f6b1ffd4b4bb378fefe513de7062 Mon Sep 17 00:00:00 2001 From: Andinus Date: Thu, 26 Mar 2020 15:31:26 +0530 Subject: Fix logical error in fmt.Errorf statement --- cmd/cetus/apod.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cetus/apod.go b/cmd/cetus/apod.go index 4970f79..2c0f2a0 100644 --- a/cmd/cetus/apod.go +++ b/cmd/cetus/apod.go @@ -161,7 +161,7 @@ func dlAndCacheAPODBody() { // and the program shouldn't exit but should continue after // printing the log so that the user can investigate it later. if err != nil { - err = fmt.Errorf("%s\n%s", + err = fmt.Errorf("%s%s\n%s", "apod.go: failed to write body to file: ", file, err.Error()) log.Println(err) -- cgit 1.4.1-2-gfad0