Skip to content

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

@azproduction

Description

@azproduction

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 | }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions