1
0
Fork 0

Merge pull request #694 from rqlite/better-cli-503

Display HTTP response body on 503
master
Philip O'Toole 4 years ago committed by GitHub
commit bd7931fcc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,3 +1,6 @@
### 5.6.1 (unreleased)
- [PR #694](https://github.com/rqlite/rqlite/pull/694): Display, in the CLI, the HTTP response body on HTTP status 503.
## 5.6.0 (November 17th 2020)
### New features

@ -81,7 +81,7 @@ func executeWithClient(ctx *cli.Context, client *http.Client, argv *argT, timer
}
if resp.StatusCode != http.StatusOK {
return fmt.Errorf("server responded with: %s", resp.Status)
return fmt.Errorf("server responded with %s: %s", resp.Status, response)
}
// Parse response and write results

@ -135,7 +135,7 @@ func queryWithClient(ctx *cli.Context, client *http.Client, argv *argT, timer bo
}
if resp.StatusCode != http.StatusOK {
return fmt.Errorf("server responded with: %s", resp.Status)
return fmt.Errorf("server responded with %s: %s", resp.Status, response)
}
// Parse response and write results

Loading…
Cancel
Save