Skip to content

Instantly share code, notes, and snippets.

Konrad W. kwketh

View GitHub Profile
View keybase.md

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:

View test-failing.js
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.");
});
View test-working.js
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();
});
You can’t perform that action at this time.