We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0efe93 commit 323ce45Copy full SHA for 323ce45
CHANGELOG.md
@@ -1,6 +1,7 @@
1
## (Unreleased) ##
2
3
* Allows the user to specify ignored properties and selectors
4
+* Better parse error messages
5
6
## 0.2.1 - 3/28/2013 ##
7
lib/csscss/cli.rb
@@ -65,8 +65,13 @@ def execute
65
end
66
67
rescue Parslet::ParseFailed => e
68
- puts "Had a problem parsing the css"
69
- puts e.cause.ascii_tree
+ line, column = e.cause.source.line_and_column
+ puts "Had a problem parsing the css at line: #{line}, column: #{column}".red
70
+ if ENV['CSSCSS_DEBUG'] == 'true'
71
+ puts e.cause.ascii_tree.red
72
+ else
73
+ puts "Run with CSSCSS_DEBUG=true for verbose parser errors".red
74
+ end
75
exit 1
76
77
0 commit comments