Skip to content
Snippets Groups Projects
Commit cc4a69df authored by Jeromy Johnson's avatar Jeromy Johnson
Browse files

log failure to check file size


License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent f08c88c8
Branches
No related tags found
1 merge request!1New
...@@ -70,6 +70,7 @@ remains to be implemented. ...@@ -70,6 +70,7 @@ remains to be implemented.
sizeFile, ok := req.Files().(files.SizeFile) sizeFile, ok := req.Files().(files.SizeFile)
if !ok { if !ok {
// we don't need to error, the progress bar just won't know how big the files are // 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 return nil
} }
...@@ -79,6 +80,7 @@ remains to be implemented. ...@@ -79,6 +80,7 @@ remains to be implemented.
go func() { go func() {
size, err := sizeFile.Size() size, err := sizeFile.Size()
if err != nil { if err != nil {
log.Warningf("error getting files size: %s", err)
// see comment above // see comment above
return return
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment