Created
December 30, 2014 21:51
-
-
Save azizshamim/449da054074dd6636aad to your computer and use it in GitHub Desktop.
javascript done with errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.report_error = function(err, res, done) { | |
if (err) { | |
return done(err); | |
} else { | |
done(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment