Skip to content

Instantly share code, notes, and snippets.

View kwketh's full-sized avatar

Konrad W. kwketh

View GitHub Profile

Keybase proof

I hereby claim:

  • I am kwketh on github.
  • I am kwketh (https://keybase.io/kwketh) on keybase.
  • I have a public key ASBSoyfWqYVPTg9Fk8xGSWyHG-3_F1PV3Tet8rxsbp1NLwo

To claim this, I am signing this object:

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.");
});
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();
});