diff options
author | elijah <elijah@riseup.net> | 2012-11-15 01:18:47 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2012-11-15 01:18:47 -0800 |
commit | 359c0b757f1dd52b63e08f8b67fa7fe7f1c0ba00 (patch) | |
tree | c1d2f7486abbbdb27df55eb3e3bd3df44a9d4f63 /lib | |
parent | c7f46ce58bbeda414b9063591eba3369176a7048 (diff) | |
download | leap_cli-359c0b757f1dd52b63e08f8b67fa7fe7f1c0ba00.tar.gz leap_cli-359c0b757f1dd52b63e08f8b67fa7fe7f1c0ba00.tar.bz2 |
minor fix to exception catching
Diffstat (limited to 'lib')
-rw-r--r-- | lib/leap_cli/config/object.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/config/object.rb b/lib/leap_cli/config/object.rb index ef28179..de3c2c7 100644 --- a/lib/leap_cli/config/object.rb +++ b/lib/leap_cli/config/object.rb @@ -289,7 +289,7 @@ module LeapCli log "error message: no file '#{exc}'", :indent => 1 end end - rescue StandardError => exc + rescue SyntaxError, StandardError => exc Util::bail! do log :error, "while evaluating node '#{@node.name}'" log "offending string: #{$1}", :indent => 1 |