mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 07:29:35 +01:00
webgui: fixes previously unhandled error in JSON marshall in fs/rc/webgui/plugins.go:writeToFile
This commit is contained in:
parent
b6d3cad70e
commit
bf685f600e
@ -174,7 +174,9 @@ func (p *Plugins) writeToFile() (err error) {
|
||||
availablePluginsJSON := filepath.Join(pluginsConfigPath, p.fileName)
|
||||
|
||||
file, err := json.MarshalIndent(p, "", " ")
|
||||
|
||||
if err != nil {
|
||||
fs.Logf(nil, "%s", err)
|
||||
}
|
||||
err = ioutil.WriteFile(availablePluginsJSON, file, 0755)
|
||||
if err != nil {
|
||||
fs.Logf(nil, "%s", err)
|
||||
|
Loading…
Reference in New Issue
Block a user