summaryrefslogtreecommitdiff
path: root/internal/pipeline
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-05-19 20:02:27 +0100
committerNick White <git@njw.name>2021-05-19 20:02:27 +0100
commitcc1db86e1e46d4d00d9c24fb3feb6e9286539404 (patch)
treeb1696f9a9aacdfeafeae02116ea6298285f985f1 /internal/pipeline
parent8d2045eee6273f2a30ca91debe05d010556bb630 (diff)
Fix syntax for some fmt.Errorf calls
Diffstat (limited to 'internal/pipeline')
-rw-r--r--internal/pipeline/pipeline.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/pipeline/pipeline.go b/internal/pipeline/pipeline.go
index 13339d7..0d027a3 100644
--- a/internal/pipeline/pipeline.go
+++ b/internal/pipeline/pipeline.go
@@ -718,17 +718,17 @@ func SaveLogs(conn Pipeliner, starttime int64, hostname string) error {
path := filepath.Join(os.TempDir(), key)
f, err := os.Create(path)
if err != nil {
- return fmt.Errorf("Error creating log file", err)
+ return fmt.Errorf("Error creating log file: %v", err)
}
defer f.Close()
_, err = f.WriteString(logs)
if err != nil {
- return fmt.Errorf("Error saving log file", err)
+ return fmt.Errorf("Error saving log file: %v", err)
}
_ = f.Close()
err = conn.Upload(conn.WIPStorageId(), key, path)
if err != nil {
- return fmt.Errorf("Error uploading log", err)
+ return fmt.Errorf("Error uploading log: %v", err)
}
conn.Log("Log saved to", key)
return nil