mirror of
https://github.com/goldbergyoni/nodebestpractices.git
synced 2025-10-29 00:19:14 +08:00
Fix incomplete function declaration
This commit is contained in:
@ -42,7 +42,7 @@ if(!productToAdd)
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
//centralized error object that derives from Node’s Error
|
//centralized error object that derives from Node’s Error
|
||||||
function name, httpCode, description, isOperational) {
|
function appError(name, httpCode, description, isOperational) {
|
||||||
Error.call(this);
|
Error.call(this);
|
||||||
Error.captureStackTrace(this);
|
Error.captureStackTrace(this);
|
||||||
this.name = name;
|
this.name = name;
|
||||||
|
|||||||
Reference in New Issue
Block a user