Skip to content

Instantly share code, notes, and snippets.

@kwketh
Created April 10, 2015 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwketh/b64bbf3994445e2b9c27 to your computer and use it in GitHub Desktop.
Save kwketh/b64bbf3994445e2b9c27 to your computer and use it in GitHub Desktop.
var less = require('less');
less.render('@import "missingfile.less"\n.class { width: (1 + 1) }', function (err, output) {
// err has error (missing ; on the @import line)
console.log("callback works as expected, error will be thrown.");
callUndefinedFunction();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment