Skip to content

Instantly share code, notes, and snippets.

@nummi
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save nummi/a6b86797ffc8a01a1028 to your computer and use it in GitHub Desktop.

Select an option

Save nummi/a6b86797ffc8a01a1028 to your computer and use it in GitHub Desktop.
export default function(error) {
error = new Error(error);
if (error.message) { console.log('\n' + error.message + '\n'); }
if (error.stack) { console.log('\n' + error.stack + '\n'); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment