spelling mistakes

This commit is contained in:
Mario Bodemann
2017-10-04 15:24:29 +02:00
committed by Benedikt Rötsch
parent ba1d442f73
commit f2b2a5845e

View File

@@ -1,8 +1,8 @@
/* /*
Catch Errors Handler Catch Errors Handler
With async/await, you need some way to catch errors With async/await, you need some way to catch errors.
Instead of using try{} catch(e) {} in each controller, we wrap the function in Instead of using try{} catch(e) {} in each controller, we wrap the function in
catchErrors(), catch and errors they throw, and pass it along to our express middleware with next() catchErrors(), catch any errors they throw, and pass it along to our express middleware with next().
*/ */
exports.catchErrors = (fn) => { exports.catchErrors = (fn) => {