From f11cea8ca663b4d10afec1161d023bb82de32506 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sun, 1 Feb 2026 23:32:52 +0100 Subject: http.c: Write more debug info --- http.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/http.c b/http.c index 6410192..17c8056 100644 --- a/http.c +++ b/http.c @@ -2310,8 +2310,10 @@ static int read_mf_body_boundary_byte(struct http_ctx *const h, const char b, } else { - fprintf(stderr, "%s: expected %hhx, got %hhx\n", __func__, - c->boundary[m->blen], b); + fprintf(stderr, "%s: expected %hhx in position %zu, got %hhx. " + "Expected boundary: %s, received boundary: %.*s\n", __func__, + c->boundary[m->blen], m->blen, b, c->boundary, (int)m->blen, + m->boundary); return 1; } -- cgit v1.2.3