commit dbbac61fc4e83bb9abe22e91d6ab2c4c3d1b605e
Author:     Michael Forney <[email protected]>
AuthorDate: Thu Feb 20 21:41:29 2020 -0800
Commit:     Michael Forney <[email protected]>
CommitDate: Thu Feb 20 21:49:11 2020 -0800

    sed: Include filename in error message

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++;

Reply via email to