summaryrefslogtreecommitdiffstats
path: root/src/polypcore/cli-command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/polypcore/cli-command.c')
-rw-r--r--src/polypcore/cli-command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/polypcore/cli-command.c b/src/polypcore/cli-command.c
index 3adc9a21..039aa957 100644
--- a/src/polypcore/cli-command.c
+++ b/src/polypcore/cli-command.c
@@ -29,6 +29,7 @@
#include <stdlib.h>
#include <errno.h>
+#include <polyp/error.h>
#include <polyp/xmalloc.h>
#include <polypcore/module.h>
@@ -900,7 +901,7 @@ int pa_cli_command_execute_file(pa_core *c, const char *fn, pa_strbuf *buf, int
assert(c && fn && buf);
if (!(f = fopen(fn, "r"))) {
- pa_strbuf_printf(buf, "open('%s') failed: %s\n", fn, strerror(errno));
+ pa_strbuf_printf(buf, "open('%s') failed: %s\n", fn, pa_cstrerror(errno));
if (!*fail)
ret = 0;
goto fail;