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
No related branches found
No related tags found
1 merge request!1New
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment