Skip to content

Instantly share code, notes, and snippets.

@benwillkommen
Created November 1, 2012 16:12
Show Gist options
  • Save benwillkommen/3994668 to your computer and use it in GitHub Desktop.
Save benwillkommen/3994668 to your computer and use it in GitHub Desktop.
have a blix
LOLLOG = {
HEY: function(URTHING) {
if (typeof console != "undefined") {
try {
var error = (new Error().stack);
var URNUMBER = error.substring(error.lastIndexOf("\n")).match(/:[0-9]+:/)[0].replace(":", "");
console.log(URNUMBER, URTHING);
} catch (a) {}
}
}
};
var isBroken = true;
if (isBroken)
LOLLOG.HEY("WHOOPS!");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment