Skip to content

Commit

Permalink
Merge pull request #481 from lexagosto/patch-1
Browse files Browse the repository at this point in the history
Fix example code missing a comma inside MyError definition.
  • Loading branch information
mcavage committed Nov 17, 2013
2 parents 7b6fb80 + 21ded9c commit 9b07786
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 9b07786

Please sign in to comment.