diff --git a/src/common/exec.c b/src/common/exec.c index da929f15b95..bcd5b71101e 100644 --- a/src/common/exec.c +++ b/src/common/exec.c @@ -378,7 +378,8 @@ pipe_read_line(char *cmd) errno = 0; if ((pipe_cmd = popen(cmd, "r")) == NULL) { - perror("popen failure"); + log_error(errcode(ERRCODE_SYSTEM_ERROR), + _("could not execute command \"%s\": %m"), cmd); return NULL; }