forked from enlightenment/efl
Eolian gen: Have a more useful error message when failing to write file.
This commit is contained in:
parent
1d79ce75ff
commit
426e95b214
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue