From 9df05cf368448e487b15d263a6f1a1a725e52f90 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 12 Mar 2026 11:55:10 +0200 Subject: dfm: better exec message Shows "command not found" which is clearer --- dfm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dfm.c b/dfm.c index 02eae64..23d0b68 100644 --- a/dfm.c +++ b/dfm.c @@ -2309,7 +2309,10 @@ fm_exec(struct fm *p, int in, const char *d, const char *const a[], bool bg, boo int r = run_cmd(bg ? p->t.null : p->t.fd, in, d, a, bg); if (tf) fm_term_raw(p); if (r == -1) { - fm_draw_err(p, S("exec"), errno); + if (errno == ENOENT) + fm_draw_err(p, S("exec: command not found"), 0); + else + fm_draw_err(p, S("exec"), errno); return -1; } if (WIFEXITED(r)) { -- cgit v1.2.3