webgui: fixes previously unhandled error in JSON marshall in fs/rc/webgui/plugins.go:writeToFile

This commit is contained in:
Aaron Gokaslan 2020-08-29 10:59:05 -07:00 committed by Nick Craig-Wood
parent b6d3cad70e
commit bf685f600e

View File

@ -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)