From bf685f600eda43848ff8c65ad30521dd40dc284c Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Sat, 29 Aug 2020 10:59:05 -0700 Subject: [PATCH] webgui: fixes previously unhandled error in JSON marshall in fs/rc/webgui/plugins.go:writeToFile --- fs/rc/webgui/plugins.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/rc/webgui/plugins.go b/fs/rc/webgui/plugins.go index 424e432b4..78fe3b2d9 100644 --- a/fs/rc/webgui/plugins.go +++ b/fs/rc/webgui/plugins.go @@ -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)