From aeecd914cf1d18638870aad64a7e684bcf99b4e7 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Mon, 8 Jun 2026 21:56:00 +0100 Subject: [PATCH] Report the filename and then the error, the same as all other messages. --- src/pv/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pv/file.c b/src/pv/file.c index 5eb5e9e..be3b69c 100644 --- a/src/pv/file.c +++ b/src/pv/file.c @@ -435,7 +435,7 @@ int pv_next_file(pvstate_t state, unsigned int filenum, int oldfd) input_file_is_output = false; if (input_file_is_output) { - pv_error("%s: %s", _("input file is also the output"), NULL == next_filename ? "-" : next_filename); + pv_error("%s: %s", NULL == next_filename ? "-" : next_filename, _("input file is also the output")); (void) close(fd); state->status.exit_status |= PV_ERROREXIT_OUROBOROS; return -1;