forked from enlightenment/efl
eldbus: print full filename when codegen write fails
This commit is contained in:
parent
93bac8ce4a
commit
89e0d387dd
|
@ -47,14 +47,14 @@ file_write(const char *file_name, const char *buffer)
|
|||
file_handler = fopen(filename, "wt");
|
||||
if (!file_handler)
|
||||
{
|
||||
printf("Error to write file: %s\n", file_name);
|
||||
printf("Error to write file: %s\n", filename);
|
||||
eina_strbuf_free(fname);
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
if (fwrite(buffer, strlen(buffer), 1, file_handler) < 1)
|
||||
{
|
||||
printf("Error writing to file: %s\n", file_name);
|
||||
printf("Error writing to file: %s\n", filename);
|
||||
}
|
||||
fclose(file_handler);
|
||||
eina_strbuf_free(fname);
|
||||
|
|
Loading…
Reference in New Issue