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

Comments

Added ProbeError type for use within Hermes.#63

Open
evanSpendlove wants to merge 6 commits intomasterfrom
evan/probeError
Open

Added ProbeError type for use within Hermes.#63
evanSpendlove wants to merge 6 commits intomasterfrom
evan/probeError

Conversation

@evanSpendlove
Copy link
Contributor

No description provided.

@evanSpendlove evanSpendlove added this to the MVP milestone Sep 15, 2020
@evanSpendlove evanSpendlove self-assigned this Sep 15, 2020
@evanSpendlove evanSpendlove requested a review from leczb September 16, 2020 12:01
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?

// - 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

None yet

Development

Successfully merging this pull request may close these issues.

4 participants