From 7952af5b80331f60d9f3703e63285fc7fb733a8c Mon Sep 17 00:00:00 2001 From: Jesse Wolfe Date: Fri, 21 May 2010 15:19:49 -0700 Subject: [#3674] Autoloader should propagate failures Change Autoloader's loadall to re-raise exceptions that happen when trying to load files, rather than just warning. Signed-off-by: Jesse Wolfe --- lib/puppet/util/autoload.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/puppet/util/autoload.rb') diff --git a/lib/puppet/util/autoload.rb b/lib/puppet/util/autoload.rb index 4a687bf34..006554d5a 100644 --- a/lib/puppet/util/autoload.rb +++ b/lib/puppet/util/autoload.rb @@ -123,7 +123,7 @@ class Puppet::Util::Autoload raise rescue Exception => detail puts detail.backtrace if Puppet[:trace] - warn "Could not autoload #{file}: #{detail}" + raise Puppet::Error, "Could not autoload #{file}: #{detail}" end end end -- cgit