oauthutil: suppress ERROR message when doing remote config

Before this change doing a remote config using rclone authorize gave
this error.  The token is saved a bit later anyway so the error is
needlessly confusing.

    ERROR : Failed to save new token in config file: section 'remote' not found.

This commit suppresses that error.

https://forum.rclone.org/t/onedrive-for-business-failed-to-save-token/8061
This commit is contained in:
Nick Craig-Wood 2018-12-28 09:53:53 +00:00
parent 039e2a9649
commit 3c97933416
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ func doConfig(id, name string, m configmap.Mapper, errorHandler func(*http.Reque
if err != nil {
return err
}
return PutToken(name, m, token, false)
return PutToken(name, m, token, true)
}
case TitleBarRedirectURL:
useWebServer = automatic