Skip to content

Commit

Permalink
Handle error
Browse files Browse the repository at this point in the history
  • Loading branch information
prasmussen committed Feb 23, 2016
1 parent 47d6a0c commit 78d3a1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drive/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ func (self *Drive) Download(args DownloadArgs) error {
}

bytes, rate, err := self.downloadBinary(f, args)
if err != nil {
return err
}

if !args.Stdout {
fmt.Fprintf(args.Out, "Downloaded %s at %s/s, total %s\n", f.Id, formatSize(rate, false), formatSize(bytes, false))
Expand Down

0 comments on commit 78d3a1c

Please sign in to comment.