Skip to content

Instantly share code, notes, and snippets.

@deepal
Created February 17, 2016 18:15
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 deepal/4c16dcd49675a48f233d to your computer and use it in GitHub Desktop.
Save deepal/4c16dcd49675a48f233d to your computer and use it in GitHub Desktop.
nodesec-error-handling-async.js
myAsyncFunction(somedata, function(err, response){
if (err){
/* handle this error */
}
else{
/* do something with response */
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment