summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Brewer <ben.brewer@codethink.co.uk>2014-06-02 09:56:01 (GMT)
committerBen Brewer <ben.brewer@codethink.co.uk>2014-06-04 11:44:01 (GMT)
commit1de58f93e1b19442d40badde4b68fc34bb08f386 (patch)
tree899dc8dee7ef09aa38b9341a1a2a5421102f31ac
parentc78b85020bc7337493b259694239ea64ace8b44e (diff)
downloadtbdiff-baserock/benbrewer/post-overhaul-v2.tar.gz
Print errno when tbdiff-deploy fails to open streambaserock/benbrewer/post-overhaul-v2
-rw-r--r--tbdiff-deploy/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tbdiff-deploy/main.c b/tbdiff-deploy/main.c
index 283c5b4..228a753 100644
--- a/tbdiff-deploy/main.c
+++ b/tbdiff-deploy/main.c
@@ -43,7 +43,9 @@ main(int argc,
int patch = open(argv[1], O_RDONLY);
if(patch < 0) {
- fprintf(stderr, "Error: Can't open patch stream for reading.\n");
+ fprintf(stderr,
+ "Error: Can't open patch stream for reading (err=%d).\n",
+ errno);
return EXIT_FAILURE;
}