Return fmt.Errorf()

pull/2178/head
Jason Wilder 2015-04-06 16:29:00 -06:00
parent 89b5473a09
commit c356ff6483
1 changed files with 1 additions and 1 deletions

View File

@ -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