Fix remaining places in listing where we were logging errors not returning them

This commit is contained in:
Nick Craig-Wood
2016-05-30 19:51:15 +01:00
parent b6f1391da3
commit c6a79ff72d
4 changed files with 16 additions and 28 deletions
+2 -3
View File
@@ -18,6 +18,7 @@ import (
"github.com/ncw/rclone/onedrive/api"
"github.com/ncw/rclone/pacer"
"github.com/ncw/rclone/rest"
"github.com/pkg/errors"
"github.com/spf13/pflag"
"golang.org/x/oauth2"
)
@@ -331,9 +332,7 @@ OUTER:
return shouldRetry(resp, err)
})
if err != nil {
fs.Stats.Error()
fs.ErrorLog(f, "Couldn't list files: %v", err)
break
return found, errors.Wrap(err, "couldn't list files")
}
if len(result.Value) == 0 {
break