Merge pull request #38 from iankronquist/better-type-error
(maint) Remove unused code path
This commit is contained in:
commit
bd319f3c82
|
@ -17,10 +17,9 @@ class PuppetX::PuppetLabs::Strings::YARD::Handlers::HostClassHandler < PuppetX::
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
param_type_info[pop_param.name] = tp.interpret_any(pop_param.type_expr)
|
param_type_info[pop_param.name] = tp.interpret_any(pop_param.type_expr)
|
||||||
rescue Puppet::ParseError
|
rescue Puppet::ParseError => e
|
||||||
# If the type could not be interpreted insert a prominent warning
|
# If the type could not be interpreted insert a prominent warning
|
||||||
param_type_info[pop_param.name] = "TypeError - " +
|
param_type_info[pop_param.name] = "Type Error: #{e.message}"
|
||||||
"#{pop_param.type_expr} isn't a valid type."
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue