diff options
author | elijah <elijah@riseup.net> | 2014-10-30 14:37:34 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-10-30 14:37:34 -0700 |
commit | a24cd0bd22c2ab9a452c1992fa4e9b3691c1c991 (patch) | |
tree | be37f788d6a8114b5bc292f41bde6e142a27dd1d /lib/leap_cli/config | |
parent | 49fa70f2503fa3112e9f5dcfa791f4ae49519deb (diff) |
minor fix to bail and log level
Diffstat (limited to 'lib/leap_cli/config')
-rw-r--r-- | lib/leap_cli/config/object.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/leap_cli/config/object.rb b/lib/leap_cli/config/object.rb index 3ac5d36..489b1d2 100644 --- a/lib/leap_cli/config/object.rb +++ b/lib/leap_cli/config/object.rb @@ -288,23 +288,23 @@ module LeapCli Util::log "offending string: #{value}", :indent => 1 Util::log "error message: no file '#{exc}'", :indent => 1 end - raise exc if LeapCli.log_level >= 2 end + raise exc if LeapCli.log_level >= 2 rescue AssertionFailed => exc Util.bail! do Util::log :failed, "assertion while evaluating node '#{self.name}'" Util::log 'assertion: %s' % exc.assertion, :indent => 1 Util::log "offending key: #{key}", :indent => 1 - raise exc if LeapCli.log_level >= 2 end + raise exc if LeapCli.log_level >= 2 rescue SyntaxError, StandardError => exc Util::bail! do Util::log :error, "while evaluating node '#{self.name}'" Util::log "offending key: #{key}", :indent => 1 Util::log "offending string: #{value}", :indent => 1 Util::log "error message: #{exc.inspect}", :indent => 1 - raise exc if LeapCli.log_level >= 2 end + raise exc if LeapCli.log_level >= 2 end private |