sed: Include filename in error message

This commit is contained in:
Michael Forney 2020-02-20 21:41:29 -08:00
parent 71154d42aa
commit dbbac61fc4

2
sed.c
View File

@ -1128,7 +1128,7 @@ next_file(void)
file = stdin;
} else if (!(file = fopen(*files, "r"))) {
/* warn this file didn't open, but move on to next */
weprintf("fopen:");
weprintf("fopen %s:", *files);
ret = 1;
}
files++;