diff options
Diffstat (limited to 'lib/puppet/interface.rb')
-rw-r--r-- | lib/puppet/interface.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/puppet/interface.rb b/lib/puppet/interface.rb index 4a735069f..c7a167d3a 100644 --- a/lib/puppet/interface.rb +++ b/lib/puppet/interface.rb @@ -155,12 +155,10 @@ class Puppet::Interface action.get_option(name).__decoration_name(type) end + # Exceptions here should propagate up; this implements a hook we can use + # reasonably for option validation. methods.each do |hook| - begin - respond_to? hook and self.__send__(hook, action, passed_args, passed_options) - rescue => e - Puppet.warning("invoking #{action} #{type} hook: #{e}") - end + respond_to? hook and self.__send__(hook, action, passed_args, passed_options) end end |