summaryrefslogtreecommitdiff
path: root/solenv/bin/concat-deps.c
diff options
context:
space:
mode:
Diffstat (limited to 'solenv/bin/concat-deps.c')
-rw-r--r--solenv/bin/concat-deps.c6
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);