Skip to content

Commit

Permalink
Fix example code missing a comma inside MyError definition.
Browse files Browse the repository at this point in the history
Simple addition of a missing comma.
  • Loading branch information
lexagosto committed Nov 17, 2013
1 parent 7b6fb80 commit 21ded9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.restdown
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ You can always add your own by subclassing `restify.RestError` like:

function MyError(message) {
restify.RestError.call(this, {
restCode: 'MyError'
restCode: 'MyError',
statusCode: 418,
message: message,
constructorOpt: MyError
Expand Down

0 comments on commit 21ded9c

Please sign in to comment.