Skip to content

Instantly share code, notes, and snippets.

@kwketh
Created April 10, 2015 13:23
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/4c3c47308d619a640db1 to your computer and use it in GitHub Desktop.
Save kwketh/4c3c47308d619a640db1 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 (missingfile.less does not exist)
console.log("callback works but does not display any errors.");
callUndefinedFunction();
console.log("execution stopped, no errors in either stdout or stderr.");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment