From 732c425b5ecd4f2e00e2644b0627dc33b091c620 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 2 Mar 2011 12:12:58 +0100 Subject: [PATCH] Raise exception of appropriate type --- modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb b/modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb index 1615c3b86..4b4371db1 100644 --- a/modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb +++ b/modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb @@ -28,7 +28,7 @@ module Puppet::Parser::Functions ans['name'] = hoster end rescue => e - raise "Error while trying to match addr #{addr} for net #{net}: #{e.message}\n#{e.backtrace}" + raise Puppet::ParseError, "Error while trying to match addr #{addr} for net #{net}: #{e.message}\n#{e.backtrace}" end end end -- 2.20.1