Instead of path, line and position, emit the section the error happened in. This has a lot more information to consume.
This struct keeps track of an area of text in a CSS file and uses it when specifying information. Also, the cssprovider keeps track of sections when parsing a file.