diff --git a/lib/puppet/type/sensu_check.rb b/lib/puppet/type/sensu_check.rb index e1ed238bfe..9e1f267f67 100644 --- a/lib/puppet/type/sensu_check.rb +++ b/lib/puppet/type/sensu_check.rb @@ -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