diff options
author | Jakob Borg <jakob@kastelo.net> | 2023-12-04 07:11:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 07:11:35 +0100 |
commit | 7b1932d64e1216ef664cdef452b0b4975692c44a (patch) | |
tree | a4566623701adc99076056de82f2e72a839dbb5b /lib | |
parent | 5bfc540c88f985b2b612b045cdf19afa7ef4be0a (diff) | |
download | syncthing-7b1932d64e1216ef664cdef452b0b4975692c44a.tar.gz syncthing-7b1932d64e1216ef664cdef452b0b4975692c44a.zip |
lib/api: Improve ignore loading error handling (fixes #9253) (#9254)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/api.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/api/api.go b/lib/api/api.go index 065b634d4..c316310c8 100644 --- a/lib/api/api.go +++ b/lib/api/api.go @@ -47,7 +47,6 @@ import ( "github.com/syncthing/syncthing/lib/discover" "github.com/syncthing/syncthing/lib/events" "github.com/syncthing/syncthing/lib/fs" - "github.com/syncthing/syncthing/lib/ignore" "github.com/syncthing/syncthing/lib/locations" "github.com/syncthing/syncthing/lib/logger" "github.com/syncthing/syncthing/lib/model" @@ -1349,11 +1348,6 @@ func (s *service) getDBIgnores(w http.ResponseWriter, r *http.Request) { folder := qs.Get("folder") lines, patterns, err := s.model.LoadIgnores(folder) - if err != nil && !ignore.IsParseError(err) { - http.Error(w, err.Error(), http.StatusInternalServerError) - return - } - sendJSON(w, map[string]interface{}{ "ignore": lines, "expanded": patterns, |