imore verbose errors: show which file failed on open - stagit-gopher - A git gopher frontend. (mirror) Err bitreich.org 70 hgit clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ URL:git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ bitreich.org 70 1Log /scm/stagit-gopher/log.gph bitreich.org 70 1Files /scm/stagit-gopher/files.gph bitreich.org 70 1Refs /scm/stagit-gopher/refs.gph bitreich.org 70 1Tags /scm/stagit-gopher/tag bitreich.org 70 1README /scm/stagit-gopher/file/README.gph bitreich.org 70 1LICENSE /scm/stagit-gopher/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit 9420a097388c8c90a4f534d3b5f8d4f6b7f195bd /scm/stagit-gopher/commit/9420a097388c8c90a4f534d3b5f8d4f6b7f195bd.gph bitreich.org 70 1parent 2fc39b9cc9f90f20a6ef3c725080af1a0d5bc413 /scm/stagit-gopher/commit/2fc39b9cc9f90f20a6ef3c725080af1a0d5bc413.gph bitreich.org 70 hAuthor: Hiltjo Posthuma URL:mailto:hiltjo@codemadness.org bitreich.org 70 iDate: Fri, 17 Nov 2017 16:09:55 +0100 Err bitreich.org 70 i Err bitreich.org 70 imore verbose errors: show which file failed on open Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M stagit-gopher.c | 4 ++-- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 2 insertions(+), 2 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/stagit-gopher.c b/stagit-gopher.c /scm/stagit-gopher/file/stagit-gopher.c.gph bitreich.org 70 i@@ -267,7 +267,7 @@ efopen(const char *name, const char *flags) Err bitreich.org 70 i FILE *fp; Err bitreich.org 70 i Err bitreich.org 70 i if (!(fp = fopen(name, flags))) Err bitreich.org 70 i- err(1, "fopen"); Err bitreich.org 70 i+ err(1, "fopen: '%s'", name); Err bitreich.org 70 i Err bitreich.org 70 i return fp; Err bitreich.org 70 i } Err bitreich.org 70 i@@ -1207,7 +1207,7 @@ main(int argc, char *argv[]) Err bitreich.org 70 i if ((fd = mkstemp(tmppath)) == -1) Err bitreich.org 70 i err(1, "mkstemp"); Err bitreich.org 70 i if (!(wcachefp = fdopen(fd, "w"))) Err bitreich.org 70 i- err(1, "fdopen"); Err bitreich.org 70 i+ err(1, "fdopen: '%s'", tmppath); Err bitreich.org 70 i /* write last commit id (HEAD) */ Err bitreich.org 70 i git_oid_tostr(buf, sizeof(buf), head); Err bitreich.org 70 i fprintf(wcachefp, "%s\n", buf); Err bitreich.org 70 .