tasn pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=426e95b2142d2d809e63f71ccbdf68e5aa3f68e4

commit 426e95b2142d2d809e63f71ccbdf68e5aa3f68e4
Author: Tom Hacohen <t...@stosb.com>
Date:   Fri Mar 7 12:01:52 2014 +0000

    Eolian gen: Have a more useful error message when failing to write file.
---
 src/bin/eolian/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/eolian/main.c b/src/bin/eolian/main.c
index 8b36f13..cb968c0 100644
--- a/src/bin/eolian/main.c
+++ b/src/bin/eolian/main.c
@@ -80,7 +80,8 @@ _generate_h_file(char *filename, const char *classname, 
Eina_Bool append)
    FILE* fd = fopen(filename, "w");
    if (!fd)
      {
-        ERR ("Couldn't open file %s for writing", filename);
+        const char *err = strerror(errno);
+        ERR ("Couldn't open file %s for writing. Reason: '%s'", filename, err);
         goto end;
      }
 

-- 


Reply via email to