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 <[email protected]>
  • Loading branch information
whyrusleeping committed Dec 8, 2015
1 parent f04a791 commit 9fc1a1a
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 9fc1a1a

Please sign in to comment.