summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/autoload.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-02-10 17:21:00 -0600
committerJames Turnbull <james@lovedthanlost.net>2009-02-11 18:50:17 +1100
commit6b0c1b9170c69829bdf5956d1dec0949dcc08b35 (patch)
treef48f9bf481676cf913b3dc3375a93977a0f84dcd /lib/puppet/util/autoload.rb
parent7fd5c7ef5ef51e7d7fab981d864c9636a9ecf9b9 (diff)
downloadpuppet-6b0c1b9170c69829bdf5956d1dec0949dcc08b35.tar.gz
puppet-6b0c1b9170c69829bdf5956d1dec0949dcc08b35.tar.xz
puppet-6b0c1b9170c69829bdf5956d1dec0949dcc08b35.zip
Fixing #1543 - Nagios parse errors no longer kill Puppet
The problem wasn't actually transactions, it was how exceptions were raised in Naginator. Well, parse errors actually resulted in an 'exit', rather than an exception, and the exceptions that Naginator was raising were not caught by a normal begin block (SyntaxError, rather than RuntimeError). This commit raises a RuntimeError-derived error rather than exiting. It also adds some context to the error when Puppet catches it. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet/util/autoload.rb')
0 files changed, 0 insertions, 0 deletions