aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--http.c6
1 files 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;
}