Skip to content

Commit

Permalink
log failure to check file size
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
  • Loading branch information
whyrusleeping committed Dec 28, 2015
1 parent 73ee312 commit ae66ab6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/commands/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ remains to be implemented.
sizeFile, ok := req.Files().(files.SizeFile)
if !ok {
// we don't need to error, the progress bar just won't know how big the files are
log.Warning("cannnot determine size of input file")
return nil
}

Expand All @@ -79,6 +80,7 @@ remains to be implemented.
go func() {
size, err := sizeFile.Size()
if err != nil {
log.Warningf("error getting files size: %s", err)
// see comment above
return
}
Expand Down

0 comments on commit ae66ab6

Please sign in to comment.