Skip to content

Instantly share code, notes, and snippets.

@TJkrusinski
Last active August 29, 2015 14:04
Show Gist options
  • Save TJkrusinski/445d66a99f4932afc22b to your computer and use it in GitHub Desktop.
Save TJkrusinski/445d66a99f4932afc22b to your computer and use it in GitHub Desktop.
var err = {
message: 'You are a human, here is the error',
exception: new Error('this is for the system')
};
var err = new Error('this is the huamn readable error');
console.log(err.stack);
// => stack jazz
console.log(err.message);
// => "this is the human readable error";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment