Closed koenpunt closed 8 years ago
That should IMHO be handled by node-sass
. Every implementor shouldn't have to workaround this. err.formatted
should be guaranteed by the implementation regardless of where it's coming from.
IMHO I think node-sass would've been better with a utility method for error formatting instead of a non-standard property on a standard Error
, but that's another discussion.
// @xzyfer
Closing as I feel this should be fixed in node-sass instead as that would benefit all consumers. Open an issue over there.
Tracking this in LibSass https://github.com/sass/libsass/issues/1807.
It's likely we'll patch this in node-sass in the interim since LibSass releases can take a while.
Thanks for getting back at this @xzyfer
user-emitted errors (e.g. from importer functions) do not have the
formatted
property.With the previous implementation (custom formatter) this even resulted in a fatal error due to the
file
property being non-existent