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;