Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Add css node declaration object to the GssError for better error reporting. #106

Open
a701440 opened this issue Nov 3, 2016 · 0 comments

Comments

@a701440
Copy link

a701440 commented Nov 3, 2016

The code in CSS validation does not send failing CSS node to the error manager. Having the node object can provide more information for richer error reporting (i.e. print parent node content, etc.)

Current code in places like processDeclaration:

errorManager.report(new GssError(ERROR_STR + declaration, location));

Change to something like:

errorManager.report(new GssError(ERROR_STR + declaration, location, declaration));

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

No branches or pull requests

1 participant