acd,box,onedrive,pcloud: remote log.Fatal from NewFs

And replace with error returns.
This commit is contained in:
Nick Craig-Wood 2018-11-11 10:40:13 +00:00
parent 4f6a942595
commit 96a05516f9
4 changed files with 5 additions and 5 deletions

View file

@ -246,7 +246,7 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) {
root = parsePath(root)
oAuthClient, ts, err := oauthutil.NewClient(name, m, oauthConfig)
if err != nil {
log.Fatalf("Failed to configure Pcloud: %v", err)
return nil, errors.Wrap(err, "failed to configure Pcloud")
}
f := &Fs{