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

Wrap errors in holder #1261

Merged
merged 2 commits into from May 10, 2018

Conversation

alanbernstein
Copy link
Contributor

Overview

[Describe what this pull request addresses.]

Partially Fixes FeatureBaseDB/general#28

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.

holder.go Outdated
@@ -777,7 +777,7 @@ func (s *HolderSyncer) syncFragment(index, frame, view string, slice uint64) err
RemoteClient: s.RemoteClient,
}
if err := fs.SyncFragment(); err != nil {
return err
return errors.Wrap(err, "syncing")
Copy link
Member

Choose a reason for hiding this comment

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

syncing fragment

@alanbernstein alanbernstein merged commit dbeff51 into FeatureBaseDB:master May 10, 2018
@alanbernstein alanbernstein deleted the wrap-errors-holder branch May 10, 2018 15:29
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.

Error handling/wrapping proposal
3 participants