local: fix crash when deprecated --local-no-unicode-normalization is supplied

This commit is contained in:
Nick Craig-Wood 2018-07-16 21:38:34 +01:00
parent 4d7d240c12
commit a4797014c9

View file

@ -21,7 +21,6 @@ import (
"github.com/ncw/rclone/fs/hash" "github.com/ncw/rclone/fs/hash"
"github.com/ncw/rclone/lib/readers" "github.com/ncw/rclone/lib/readers"
"github.com/pkg/errors" "github.com/pkg/errors"
"google.golang.org/appengine/log"
) )
// Constants // Constants
@ -125,7 +124,7 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) {
} }
if opt.NoUTFNorm { if opt.NoUTFNorm {
log.Errorf(nil, "The --local-no-unicode-normalization flag is deprecated and will be removed") fs.Errorf(nil, "The --local-no-unicode-normalization flag is deprecated and will be removed")
} }
f := &Fs{ f := &Fs{