Skip to content

Instantly share code, notes, and snippets.

@caktux
Created August 31, 2014 07:51
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 caktux/f1aa55154776a2c8fb15 to your computer and use it in GitHub Desktop.
Save caktux/f1aa55154776a2c8fb15 to your computer and use it in GitHub Desktop.
console.log = env.note;
window.onerror = function (errorMsg, url, lineNumber, column, errorObj) {
env.warn(
'Error: ' + errorMsg +
', Script: ' + url +
', Line: ' + lineNumber +
', Column: ' + column +
', StackTrace: ' + String(errorObj)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment