Introduction
Introduction Statistics Contact Development Disclaimer Help
more verbose errors: show which file failed on open - stagit - static git page …
git clone git://git.codemadness.org/stagit
Log
Files
Refs
README
LICENSE
---
commit 1bab6952c6dcac50e66418f117032bb0f627d559
parent 2a5669514088684bc9bfe1fddb5e353fb07ae6d6
Author: Hiltjo Posthuma <[email protected]>
Date: Fri, 10 Nov 2017 20:53:46 +0100
more verbose errors: show which file failed on open
Diffstat:
M stagit.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/stagit.c b/stagit.c
@@ -223,7 +223,7 @@ efopen(const char *name, const char *flags)
FILE *fp;
if (!(fp = fopen(name, flags)))
- err(1, "fopen");
+ err(1, "fopen: '%s'", name);
return fp;
}
@@ -1115,7 +1115,7 @@ main(int argc, char *argv[])
if ((fd = mkstemp(tmppath)) == -1)
err(1, "mkstemp");
if (!(wcachefp = fdopen(fd, "w")))
- err(1, "fdopen");
+ err(1, "fdopen: '%s'", tmppath);
/* write last commit id (HEAD) */
git_oid_tostr(buf, sizeof(buf), head);
fprintf(wcachefp, "%s\n", buf);
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.