summaryrefslogtreecommitdiffstats
path: root/src/ctx.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-05-20 12:54:15 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-05-20 12:54:15 -0400
commitffa83efbb604ba2ed921e86bc6c837f6d605faa2 (patch)
treefc3cfe72923893af49e4652308e0a15a5ce60830 /src/ctx.c
parent4a96b0d67d5d654ec1d5a3d447ceb07392fe87ec (diff)
downloadbfs-ffa83efbb604ba2ed921e86bc6c837f6d605faa2.tar.xz
Stop using %m
Diffstat (limited to 'src/ctx.c')
-rw-r--r--src/ctx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ctx.c b/src/ctx.c
index 11531df..71fef98 100644
--- a/src/ctx.c
+++ b/src/ctx.c
@@ -178,9 +178,9 @@ void bfs_ctx_flush(const struct bfs_ctx *ctx) {
const char *path = ctx_file->path;
if (path) {
- bfs_error(ctx, "%pq: %m.\n", path);
+ bfs_error(ctx, "%pq: %s.\n", path, errstr());
} else if (cfile == ctx->cout) {
- bfs_error(ctx, "(standard output): %m.\n");
+ bfs_error(ctx, "(standard output): %s.\n", errstr());
}
}