aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-11-15 01:18:47 -0800
committerelijah <elijah@riseup.net>2012-11-15 01:18:47 -0800
commit359c0b757f1dd52b63e08f8b67fa7fe7f1c0ba00 (patch)
treec1d2f7486abbbdb27df55eb3e3bd3df44a9d4f63 /lib
parentc7f46ce58bbeda414b9063591eba3369176a7048 (diff)
downloadleap_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.rb2
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