summaryrefslogtreecommitdiffstats
path: root/bin/puppetrun
diff options
context:
space:
mode:
Diffstat (limited to 'bin/puppetrun')
-rwxr-xr-xbin/puppetrun4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/puppetrun b/bin/puppetrun
index c48b5bf08..b73e2b813 100755
--- a/bin/puppetrun
+++ b/bin/puppetrun
@@ -121,7 +121,7 @@
end
begin
require 'ldap'
-rescue LoadError
+rescue
$stderr.puts "Failed to load ruby LDAP library. LDAP functionality will not be available"
end
require 'puppet'
@@ -174,7 +174,7 @@ $haveusage = true
begin
require 'rdoc/usage'
-rescue LoadError
+rescue
$haveusage = false
end