lib/request: use transformed req body 🐛

This commit is contained in:
Jannis R 2019-10-20 02:24:07 +02:00
parent 252ce5b515
commit 7b7293efea
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -79,7 +79,7 @@ const request = (ctx, userAgent, reqData) => {
// Async stack traces are not supported everywhere yet, so we create our own. // Async stack traces are not supported everywhere yet, so we create our own.
const err = new Error() const err = new Error()
err.isHafasError = true // todo: rename to `isHafasClientError` err.isHafasError = true // todo: rename to `isHafasClientError`
err.request = body err.request = req.body // todo: commit as bugfix
err.url = url err.url = url
captureStackTrace(err) captureStackTrace(err)