diff options
author | Tor Lillqvist <tml@collabora.com> | 2013-09-23 19:25:48 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2013-09-23 20:23:48 +0300 |
commit | c03124eb1cd2f9c1624978edcf2c4b04cd2f87f0 (patch) | |
tree | 4fcc9465e54b7195b27dc047adda02e2ed31a8ea /solenv/bin/concat-deps.c | |
parent | 76a5c65f097f3d68e9eee16b13f6a740893a94d2 (diff) |
Print a helpful error message if we are going to fail
Change-Id: I0685c9d2d857a9e994c616acb6d7ce106c7a7dad
Diffstat (limited to 'solenv/bin/concat-deps.c')
-rw-r--r-- | solenv/bin/concat-deps.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/solenv/bin/concat-deps.c b/solenv/bin/concat-deps.c index ebabdd010a52..87b6f32f9d3e 100644 --- a/solenv/bin/concat-deps.c +++ b/solenv/bin/concat-deps.c @@ -871,7 +871,11 @@ static inline int generate_phony_file(char* fn, char* content) { FILE* depfile; depfile = fopen(fn, "w"); - if(depfile) + if(!depfile) + { + fprintf(stderr, "Could not open '%s' for writing: %s\n", fn, strerror(errno)); + } + else { fputs(content, depfile); fclose(depfile); |