Report the filename and then the error, the same as all other messages.

This commit is contained in:
Andrew Wood
2026-06-08 21:56:00 +01:00
parent 1190e70085
commit aeecd914cf
+1 -1
View File
@@ -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;