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-02 14:53:43 (GMT)
commit3bf1cf5dd432111e6d64b51753b171bc5f7f0770 (patch)
tree90d33e04dfe72670402e5e238424a492841bf2e8
parente818b38f7d4c9b0f6491f43151f719bf7392b86c (diff)
downloadtbdiff-baserock/benbrewer/post-overhaul.tar.gz
Print errno when tbdiff-deploy fails to open streambaserock/benbrewer/post-overhaul
-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;
}