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

Add check name to ArgumentError #1249

Merged
merged 1 commit into from
May 7, 2020
Merged

Add check name to ArgumentError #1249

merged 1 commit into from
May 7, 2020

Conversation

amccrea
Copy link
Contributor

@amccrea amccrea commented May 5, 2020

Pull Request Checklist

Added "value" variable to output of ArgumentError message.

Description

Added "value" variable to output of ArgumentError message.

Related Issue

Motivation and Context

"sensu_check name invalid" needs more information about which check name is failing the ArgumentError. Otherwise it makes it hard to debug when you have thousands of checks.

How Has This Been Tested?

Edited code on our puppet server, pushed out, works great. Told me the name of the check which had accidentally gotten a space in the name during a giant sed.

General

  • Update README.md with any necessary configuration snippets - No new info.

  • New parameters are documented - no new parameters

  • New parameters have tests - no new parameters

  • Tests pass - bundle exec rake validate lint spec - haven't tested this.

"sensu_check name invalid" needs more information about *which* check name is failing the ArgumentError.
@ghoneycutt
Copy link
Collaborator

@amccrea Thanks for the contribution! This will definitely help out debugging.

@ghoneycutt ghoneycutt merged commit adf2526 into sensu:master May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants