From c72c65bafa443ad90631ebaa0795b4722dfceb75 Mon Sep 17 00:00:00 2001 From: Kevin Rambaud Date: Mon, 30 Oct 2017 21:03:37 +0100 Subject: [PATCH] Fix incomplete function declaration --- sections/errorhandling/useonlythebuiltinerror.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sections/errorhandling/useonlythebuiltinerror.md b/sections/errorhandling/useonlythebuiltinerror.md index fc1e7c7d..042eefb3 100644 --- a/sections/errorhandling/useonlythebuiltinerror.md +++ b/sections/errorhandling/useonlythebuiltinerror.md @@ -42,7 +42,7 @@ if(!productToAdd) ```javascript //centralized error object that derives from Node’s Error -function name, httpCode, description, isOperational) { +function appError(name, httpCode, description, isOperational) { Error.call(this); Error.captureStackTrace(this); this.name = name;