sfeed_curses

[fork] sfeed (atom feed) reader
Log | Files | Refs | README | LICENSE

commit 322672db800ff1c6a6705bc82e13886ec1f480a6
parent bf166e918febc7256bc5ea6892b34af7ff8f96ff
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 13 Aug 2020 20:11:21 +0200

popen: show the command which might have failed

Should make it slightly easier to debug a run-time configuration.

NOTE: this is not really useful for markread() though since stderr is closed.

Diffstat:
Msfeed_curses.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sfeed_curses.c b/sfeed_curses.c @@ -570,7 +570,7 @@ pipeitem(const char *cmd, struct item *item, int field, int wantoutput) errno = 0; if (!(fp = popen(cmd, "w"))) - die("popen"); + die("popen: %s", cmd); if (field == -1) { for (i = 0; i < FieldLast; i++) { if (i) @@ -1596,7 +1596,7 @@ markread(struct pane *p, off_t from, off_t to, int isread) errno = 0; if (!(fp = popen(cmd, "w"))) - die("popen"); + die("popen: %s", cmd); for (i = from; i <= to; i++) { row = &(p->rows[i]); /* use pane_row_get: no need for lazyload */