mirror of
https://github.com/goldbergyoni/nodebestpractices.git
synced 2025-10-28 03:25:55 +08:00
Fix incomplete function declaration
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user