FiltersCompiler icon indicating copy to clipboard operation
FiltersCompiler copied to clipboard

Print more details when build failed because of invalid directives

Open Alex-302 opened this issue 11 months ago • 1 comments

Issue details

At the moment we see only one problematic line, if something went wrong

image

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.

Alex-302 avatar Mar 26 '24 12:03 Alex-302

This can be achieved by updating filters-downloader to the second version - it contains more informative logs.

105th avatar Mar 26 '24 13:03 105th