mirror of
git://git.suckless.org/sbase
synced 2024-12-22 15:04:53 +00:00
sed: Include filename in error message
This commit is contained in:
parent
71154d42aa
commit
dbbac61fc4
2
sed.c
2
sed.c
@ -1128,7 +1128,7 @@ next_file(void)
|
|||||||
file = stdin;
|
file = stdin;
|
||||||
} else if (!(file = fopen(*files, "r"))) {
|
} else if (!(file = fopen(*files, "r"))) {
|
||||||
/* warn this file didn't open, but move on to next */
|
/* warn this file didn't open, but move on to next */
|
||||||
weprintf("fopen:");
|
weprintf("fopen %s:", *files);
|
||||||
ret = 1;
|
ret = 1;
|
||||||
}
|
}
|
||||||
files++;
|
files++;
|
||||||
|
Loading…
Reference in New Issue
Block a user