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

Readable error messages #231

Open
deniak opened this issue Sep 23, 2015 · 0 comments
Open

Readable error messages #231

deniak opened this issue Sep 23, 2015 · 0 comments

Comments

@deniak
Copy link
Member

deniak commented Sep 23, 2015

From Bert's whishlist

Readable error messages, preferably a format close to what compilers
generate, so you can use them inside Emacs or some other IDE.

An example of better error messages could be as follows. Rewrite

"key": "error",
"extra": {
  "line": 5,
  "column": 143,
  "message": "The “profile” attribute on the “head” element is 
  obsolete. To declare which “meta” terms are used in the document, 
  instead register the names as meta extensions. To trigger specific UA 
  behaviors, use a “link” element instead."
},
"type": "validation.html"

as:

Overview.html:5:143: error: The “profile” attribute on the “head” 
element is obsolete. To declare which “meta” terms are used in the 
document, instead register the names as meta extensions. To trigger 
specific UA behaviors, use a “link” element instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant