Open dridi opened 5 months ago
Bugwash summary:
struct vrt_error { const char *type, *msg };
(ERROR).type
VCL attributeberesp.error
into a proper ERROR
$Error
to vmods (add vmod_debug coverage)Then we reevaluate the error reporting.
I wanted to revisit this ticket this morning and noticed that I forgot about the libvcc bug. I pushed 0c8448e0ef...b77b709510 to fix it.
bugwash label removed because this ticket needs an update
Following several VDD discussions, this patch series shows how getting a backend error could look like in VCL, and how it could be articulated in the core code.
This should check the boxes from the last consensus:
beresp.error
)error.*
)The first two commits are unrelated, I found a bug in libvcc while I was working on this. I will submit a pull request once I'm done with that bug (only partly fixed here) so the relevant commits to review are the ones starting with "POC".
If we still have consensus on this approach, I will find someone™ to submit something comprehensive.