my-koop / service.website

Website service
GNU General Public License v2.0
6 stars 1 forks source link

Automatically log error response when using res.error() #252

Closed Cellule closed 9 years ago

Cellule commented 10 years ago

Also using MyKoopError statusCode if available to determine status code. related to https://github.com/my-koop/module.utils/pull/14

mathieumg commented 10 years ago

Does this assume only valid HTTP codes will be provided? CR done.

Cellule commented 10 years ago

Yes since this is to be used by dev only, sending something other than [0-599] is pretty stupid

mathieumg commented 10 years ago

Just wanted to validate that. :wink: Good to merge.

Cellule commented 10 years ago

will merge as soon as https://github.com/my-koop/module.utils/pull/14 is resolved