FiltersCompiler
FiltersCompiler copied to clipboard
Print more details when build failed because of invalid directives
Issue details
At the moment we see only one problematic line, if something went wrong
If a filter compiled from dozens of files, it is hard to find where the problem exactly.
For example, Dandelion Sprout's Annoyances List
has more than 25 files, including nested include
directives.
Proposed solution
- Print a path on the file with a problem
- Print a line number
Alternative
If validation applied to a merged file - print 5 next and previous lines by which it will be possible to find the desired file or file line.
This can be achieved by updating filters-downloader to the second version - it contains more informative logs.