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

Wrong line number at error info #13

Open
rhapsodyn opened this issue Jul 2, 2014 · 0 comments
Open

Wrong line number at error info #13

rhapsodyn opened this issue Jul 2, 2014 · 0 comments

Comments

@rhapsodyn
Copy link
Contributor

When gonzales-ast throw some errors, the error info seems not right.

files.forEach(function(file, index) {
 fs.readFile(file, READ_OPTION, function(err, data) {
   if (err) {
    throw err;
   };

   if (data.trim().length > 0) {
    var compressed = cssshrink.shrink(data);
....

As code above, when there's some parsing error at index > 0, the line-number will be "right_line_number + sum_of_prev_file_line_numbers".

This issue appear at http://cssshrink.com/ too, you need to F5 to get the right line number.

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

1 participant