Commit 8075bd62 by Adeel Mujahid

README: Updates example with missing error info.

parent b6d45993
...@@ -121,6 +121,8 @@ sass.render({ ...@@ -121,6 +121,8 @@ sass.render({
// error is an object: v2 change // error is an object: v2 change
console.log(error.message); console.log(error.message);
console.log(error.code); console.log(error.code);
console.log(error.line);
console.log(error.column); // new in v2
}, },
importer: function(url, prev, done) { importer: function(url, prev, done) {
// url is the path in import as is, which libsass encountered. // url is the path in import as is, which libsass encountered.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment