From c356ff64834684808d82aad5c27660111920fad5 Mon Sep 17 00:00:00 2001 From: Jason Wilder Date: Mon, 6 Apr 2015 16:29:00 -0600 Subject: [PATCH] Return fmt.Errorf() --- cmd/influxd/backup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/influxd/backup.go b/cmd/influxd/backup.go index b8de924152..2647774b50 100644 --- a/cmd/influxd/backup.go +++ b/cmd/influxd/backup.go @@ -163,7 +163,7 @@ func (cmd *BackupCommand) download(u url.URL, ss *influxdb.Snapshot, path string // Write the archive to disk. if _, err := io.Copy(f, resp.Body); err != nil { - fmt.Errorf("write snapshot: %s", err) + return fmt.Errorf("write snapshot: %s", err) } return nil