Skip to content

Commit

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

We fixed an error message returned when the search request is invalid

https://github.com/owncloud/ocis/pull/8444
https://github.com/owncloud/ocis/issues/8442
2 changes: 1 addition & 1 deletion services/webdav/pkg/service/v0/search.go
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 911754f

Please sign in to comment.