From 84170d89b70bf328df3d6be192390614d2938993 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Sat, 12 Oct 2024 14:50:42 +0000 Subject: [PATCH] patch: show expected line number for hunk when rejecting it --- sys/src/cmd/patch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/patch.c b/sys/src/cmd/patch.c index 14a2a3e1d..226916386 100644 --- a/sys/src/cmd/patch.c +++ b/sys/src/cmd/patch.c @@ -598,7 +598,7 @@ search(Fbuf *f, Hunk *h, char *fname) return p; } } - sysfatal("%s:%d: unable to find hunk offset in %s", fname, h->lnum, h->oldpath); + sysfatal("%s:%d: unable to find hunk offset near %s:%d", fname, h->lnum, h->oldpath, h->oldln); } char*