diff --git a/cmd/syncthing/gui.go b/cmd/syncthing/gui.go index 5a98b251f..90160f1e2 100644 --- a/cmd/syncthing/gui.go +++ b/cmd/syncthing/gui.go @@ -229,7 +229,7 @@ func restPostError(req *http.Request) { func restClearErrors() { guiErrorsMut.Lock() - guiErrors = nil + guiErrors = []guiError{} guiErrorsMut.Unlock() }