acd,box,onedrive,pcloud: remote log.Fatal from NewFs
And replace with error returns.
This commit is contained in:
parent
4f6a942595
commit
96a05516f9
4 changed files with 5 additions and 5 deletions
|
@ -264,7 +264,7 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) {
|
|||
}
|
||||
oAuthClient, ts, err := oauthutil.NewClientWithBaseClient(name, m, acdConfig, baseClient)
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to configure Amazon Drive: %v", err)
|
||||
return nil, errors.Wrap(err, "failed to configure Amazon Drive")
|
||||
}
|
||||
|
||||
c := acd.NewClient(oAuthClient)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue