From 8b60d7a5aa3ca3f23445edac107d792fc7f2828b Mon Sep 17 00:00:00 2001 From: Bernhard Voelker Date: Thu, 23 Oct 2025 09:33:22 +0200 Subject: [PATCH] install: enhance error diagnostic when running strip fails * src/install.c (strip): Mention explicitly that the strip program failed in the case the user specified a custom strip program name. --- src/install.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/install.c b/src/install.c index 9cb13d4294..26bc16e110 100644 --- a/src/install.c +++ b/src/install.c @@ -518,7 +518,13 @@ strip (char const *name) bool ok = false; if (result != 0) - error (0, result, _("cannot run %s"), quoteaf (strip_program)); + { + error (0, result, + streq (strip_program, "strip") + ? _("cannot run %s") + : _("cannot run strip program %s"), + quoteaf (strip_program)); + } else { /* Wait for 'strip' to complete, and emit a warning message on failure */ -- 2.47.3