Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Improve Internal Client errors. Fixes #1697 #1729

Merged
merged 3 commits into from
Nov 8, 2018

Conversation

yuce
Copy link
Contributor

@yuce yuce commented Nov 7, 2018

Overview

Fixes #1697

Pull request checklist

Code review checklist

This is the checklist that the reviewer will follow while reviewing your pull request. You do not need to do anything with this checklist, but be aware of what the reviewer will be looking for.

  • Ensure that any changes to external docs have been included in this pull request.
  • If the changes require that minor/major versions need to be updated, tag the PR appropriately.
  • Ensure the new code is properly commented and follows Idiomatic Go.
  • Check that tests have been written and that they cover the new functionality.
  • Run tests and ensure they pass.
  • Build and run the code, performing any applicable integration testing.

Copy link
Member

@jaffee jaffee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks great - I just have the one comment

http/client.go Outdated
} else {
msg = string(buf)
}
return resp, errors.Errorf("Server error %s: '%s'", resp.Status, msg)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

errors should start with lower case letters

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Updated.

@yuce yuce merged commit 8e58fe3 into FeatureBaseDB:master Nov 8, 2018
@yuce yuce deleted the 1697-internal-client-error-report branch November 8, 2018 13:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve reporting of remote errors in client.go
3 participants