webgui: fixes previously unhandled error in JSON marshall in fs/rc/webgui/plugins.go:writeToFile
This commit is contained in:
parent
b6d3cad70e
commit
bf685f600e
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue