mirror of
https://github.com/rclone/rclone.git
synced 2025-02-02 03:29:51 +01:00
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:
parent
039e2a9649
commit
3c97933416
@ -358,7 +358,7 @@ func doConfig(id, name string, m configmap.Mapper, errorHandler func(*http.Reque
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return PutToken(name, m, token, false)
|
return PutToken(name, m, token, true)
|
||||||
}
|
}
|
||||||
case TitleBarRedirectURL:
|
case TitleBarRedirectURL:
|
||||||
useWebServer = automatic
|
useWebServer = automatic
|
||||||
|
Loading…
Reference in New Issue
Block a user