Skip to content

Commit

Permalink
Add check name to ArgumentError about check name
Browse files Browse the repository at this point in the history
"sensu_check name invalid" needs more information about *which* check name is failing the ArgumentError.
  • Loading branch information
amccrea authored and ghoneycutt committed May 7, 2020
1 parent 2598f00 commit adf2526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/type/sensu_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
desc "The name of the check."
validate do |value|
unless value =~ PuppetX::Sensu::Type.name_regex
raise ArgumentError, "sensu_check name invalid"
raise ArgumentError, "sensu_check name invalid - check name #{value}"
end
end
defaultto do
Expand Down

0 comments on commit adf2526

Please sign in to comment.