From dbbac61fc4e83bb9abe22e91d6ab2c4c3d1b605e Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Thu, 20 Feb 2020 21:41:29 -0800 Subject: [PATCH] sed: Include filename in error message --- sed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sed.c b/sed.c index 2f4eae2..0847194 100644 --- a/sed.c +++ b/sed.c @@ -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++;