purescript-hypertrout icon indicating copy to clipboard operation
purescript-hypertrout copied to clipboard

`message` is ignored if method throws `HTTPError`

Open yanok opened this issue 8 years ago • 2 comments
trafficstars

If some method decides to throw an HTTPError the provided message is simply ignored.

yanok avatar Oct 27 '17 14:10 yanok

Do you mean this message: https://github.com/owickstrom/purescript-hypertrout/blob/master/src/Hyper/Trout/Router.purs#L352 ? Could you provide a minimal example to reproduce the problem?

owickstrom avatar Oct 27 '17 16:10 owickstrom

No, I mean when method hander returns Left RoutingError, the message part the error is ignored. Here: https://github.com/owickstrom/purescript-hypertrout/blob/fd59265f081795fd010abca43bdc2990e186b478/src/Hyper/Trout/Router.purs#L246

yanok avatar Oct 27 '17 19:10 yanok