docs: improve grammar and fix typos (#5361)
This alters some comments in source files, but is interested mainly in documentation files and help messages.
This commit is contained in:
@@ -269,7 +269,7 @@ func errorHandler(res *http.Response) (err error) {
|
||||
}
|
||||
serverError.Message = string(data)
|
||||
if serverError.Message == "" || strings.HasPrefix(serverError.Message, "{") {
|
||||
// Replace empty or JSON response with a human readable text.
|
||||
// Replace empty or JSON response with a human-readable text.
|
||||
serverError.Message = res.Status
|
||||
}
|
||||
serverError.Status = res.StatusCode
|
||||
|
||||
Reference in New Issue
Block a user