Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensure that errors are handled #251

Merged
merged 5 commits into from
Apr 3, 2017
Merged

ensure that errors are handled #251

merged 5 commits into from
Apr 3, 2017

Conversation

afeld
Copy link
Member

@afeld afeld commented Mar 31, 2017

  • Run errcheck through Circle CI
  • Ensure that errors are handled in code, or at least explicitly ignore them (in tests)

lib/workspace.go Outdated
@@ -57,7 +58,7 @@ func LoadData(openControlDir string, certificationPath string) (common.Workspace
}(&wg)
wg.Wait()
var errs []error
// errs = append(errs, certificationErr)
errs = append(errs, certificationErr)
Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, this seems to be causing the build failure... @jcscottiii Happen to remember why it was commented out?

Copy link
Member

Choose a reason for hiding this comment

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

ahh we need to do a check if certificationErr is not nil. if so, append it.

@jcscottiii jcscottiii merged commit 84402b6 into master Apr 3, 2017
@jcscottiii jcscottiii deleted the errcheck branch April 3, 2017 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants