Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Added ProbeError type for use within Hermes. #63

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

evanSpendlove
Copy link
Contributor

No description provided.

hermes/probe/error/error.go Outdated Show resolved Hide resolved
hermes/probe/error/error.go Outdated Show resolved Hide resolved
hermes/probe/error/error.go Outdated Show resolved Hide resolved
hermes/probe/error/error.go Outdated Show resolved Hide resolved
hermes/probe/error/error.go Outdated Show resolved Hide resolved
hermes/probe/error/error.go Outdated Show resolved Hide resolved
Copy link
Contributor

@deniadelcid deniadelcid left a comment

Choose a reason for hiding this comment

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

Can you please add a test file?

-- REPLY --
The Is() function has been removed, so the only functions that remain are New() and Error().

Would you like me to add a test file for these?

hermes/probe/error/error.go Outdated Show resolved Hide resolved
hermes/probe/error/error.go Outdated Show resolved Hide resolved
hermes/probe/error/error.go Outdated Show resolved Hide resolved
hermes/probe/error/error.go Outdated Show resolved Hide resolved
hermes/probe/error/error.go Outdated Show resolved Hide resolved
hermes/probe/error/error.go Outdated Show resolved Hide resolved
// - err: the underlying error.
// Returns:
// - ProbeError: returns a new ProbeError object containing the args passed.
func NewProbeError(status metrics.ExitStatus, err error) *ProbeError {
Copy link

Choose a reason for hiding this comment

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

This function doesn't do anything.
Just remove it and use &ProbeError{...} in its place.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
GCS
  
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

4 participants