Skip to content

Commit

Permalink
fix: bulky error message for invalid search request
Browse files Browse the repository at this point in the history
  • Loading branch information
saw-jan committed Feb 13, 2024
1 parent 84dc519 commit 33bb6b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/fix-search-error-message.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Fix search error message

When fixed the error message returned when the search request is invalid

https://github.com/owncloud/ocis/issues/8442
2 changes: 1 addition & 1 deletion services/webdav/pkg/service/v0/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (g Webdav) Search(w http.ResponseWriter, r *http.Request) {
e := merrors.Parse(err.Error())
switch e.Code {
case http.StatusBadRequest:
renderError(w, r, errBadRequest(err.Error()))
renderError(w, r, errBadRequest(e.Detail))
default:
renderError(w, r, errInternalError(err.Error()))
}
Expand Down

0 comments on commit 33bb6b6

Please sign in to comment.