diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a4c9231..1b5d0451 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 8.19.1 (unreleased) +### Implementation changes and bug fixes +- [PR #1670](https://github.com/rqlite/rqlite/pull/1670): Improve error message when query on remote node fails. + ## 8.19.0 (February 3rd 2024) This release allows you to set a maximum amount of a time a query will run. If the query does not complete within the set time, an error will be returned. ### New features diff --git a/http/service.go b/http/service.go index c1f702ec..72c4be3e 100644 --- a/http/service.go +++ b/http/service.go @@ -1241,6 +1241,8 @@ func (s *Service) handleQuery(w http.ResponseWriter, r *http.Request, qp QueryPa http.Error(w, "remote query not authorized", http.StatusUnauthorized) return } + resultsErr = fmt.Errorf("node failed to process Query on remote node at %s: %s", + addr, resultsErr.Error()) } stats.Add(numRemoteQueries, 1) }