hcatlin/libsass — pull request #66 by bitc (2012-11-12 19:23:05+00:00)
Title: Fix the document path to contain the real filename

When there is a syntax error, sassc does not report the correct filename for files that have been imported.

This is what currently happens:

$ ls scss
_links.scss style.scss
$ sassc scss/style.scss
ERROR -- scss/links:7: reference to unbound variable $foo
Backtrace:
scss/links:7

Notice that above the filename is listed as `links` instead of `_links.scss`. This simple patch fixes things:

$ sassc scss/style.scss
ERROR -- scss/_links.scss:7: reference to unbound variable $foo
Backtrace:
scss/_links.scss:7