Browse files

Kick out the exception message when parsing the palette file doesn't …

…work
  • Loading branch information...
1 parent 96b4ab5 commit 9b2e2e73f47e1b2f700ca82d18bda04b614c6ca0 @joshuaclayton committed Aug 24, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/palette/cli.rb
View
4 lib/palette/cli.rb
@@ -6,8 +6,8 @@ def initialize(*args)
puts Palette::Dsl.run {
eval(IO.read(path), binding, path)
}
- rescue
- p "Please check the syntax of your palette file"
+ rescue Exception => e
+ puts "Please check the syntax of your palette file\n #{e}"
exit 1
end
end

0 comments on commit 9b2e2e7

Please sign in to comment.