@cryptotaxi247 / kubo / commits / cc4a69df2

log failure to check file size

License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>

Jeromy committed Dec 7, 2015 at 22:34 UTC cc4a69df209b84bc1aa7ace697d1bb4bc7bc8e65
1 file changed +2
core/commands/add.go
+2
@@ -70,6 +70,7 @@ remains to be implemented.
70 sizeFile, ok := req.Files().(files.SizeFile)
71 if !ok {
72 // we don't need to error, the progress bar just won't know how big the files are
73 + log.Warning("cannnot determine size of input file")
74 return nil
75 }
76
@@ -79,6 +80,7 @@ remains to be implemented.
80 go func() {
81 size, err := sizeFile.Size()
82 if err != nil {
83 + log.Warningf("error getting files size: %s", err)
84 // see comment above
85 return
86 }