Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better parse error message in gonzales.cssp.node.js #6

Open
azproduction opened this issue Nov 7, 2013 · 3 comments
Open

Better parse error message in gonzales.cssp.node.js #6

azproduction opened this issue Nov 7, 2013 · 3 comments

Comments

@azproduction
Copy link

CSSO 1.3.8

  1. Line number in parse error message excludes comment lines and new lines
/* test */
div {
    color: red;
    c
    font-weight: bold;
}

Actual error message: Please check the validity of the CSS block starting from the line #2
Expected Please check the validity of the CSS block starting from the line #4

In huge file one can not simply vi +3 index.css and find the source of problem...

  1. Error message could be more informative

It should include full css block with error, and line numbers

Please check the validity of the CSS block starting from the line #4
  2 | div {
  3 |     color: red;
> 4 |     c
  5 |     font-weight: bold;
  6 | }
@robhrt7
Copy link

robhrt7 commented Feb 10, 2014

Up. Also, processing many files in a row, it's hard to understand error without the name of broken file.

@olso
Copy link

olso commented Jan 23, 2015

Please

@damiendube
Copy link

This is needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants