|
|
|
|
|
by jestar_jokin
3748 days ago
|
|
Unfortunately, Node.js decided that every callback should accept an error as the first argument to every callback. If you're chaining a bunch of callbacks, it's tedious and error-prone to add boilerplate to check for an error and handle it consistently in every callback, and violating the DRY principle. It's not easy to simply propagate the error to a higher-level handler. |
|
Here is a link to the documentation: https://github.com/caolan/async