From f2b2a5845e99de0fb77e3a841969dab73e48090c Mon Sep 17 00:00:00 2001 From: Mario Bodemann Date: Wed, 4 Oct 2017 15:24:29 +0200 Subject: [PATCH] spelling mistakes --- handlers/errorHandlers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/errorHandlers.js b/handlers/errorHandlers.js index 993b2a5..48465e4 100644 --- a/handlers/errorHandlers.js +++ b/handlers/errorHandlers.js @@ -1,8 +1,8 @@ /* 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 - 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) => {