// Route config
{
...
pre: [
{ method: 'serializeToS3()', assign: 's3Error', failAction: 'log' },
],
}
In the code above, the s3Error is assigned to request.preResponse but not request.pre, I wonder that why in the doc, it just states that the error is assigned but not mention where it is assigned to.
Solution:
Update the hapi doc to explicitly told that the error is assigned to request.preResponse
In the code above, the s3Error is assigned to request.preResponse but not request.pre, I wonder that why in the doc, it just states that the error is assigned but not mention where it is assigned to.
Solution:
Update the hapi doc to explicitly told that the error is assigned to request.preResponse