From ffa83efbb604ba2ed921e86bc6c837f6d605faa2 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 20 May 2024 12:54:15 -0400 Subject: Stop using %m --- src/ctx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ctx.c') 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()); } } -- cgit v1.2.3