Eolian gen: Have a more useful error message when failing to write file.

This commit is contained in:
Tom Hacohen 2014-03-07 12:01:52 +00:00
parent 1d79ce75ff
commit 426e95b214
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}