mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
log failure to check file size
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
parent
f08c88c8bb
commit
cc4a69df20
@ -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
|
||||
}
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user