added error messages to utils_write_file()

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@259 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2006-03-22 18:14:25 +00:00
parent 1ba4caa89c
commit dc422fb745

View File

@ -567,11 +567,14 @@ gint utils_write_file(const gchar *filename, const gchar *text)
if (len != bytes_written)
{
geany_debug("utils_write_file(): written only %d bytes, had to write %d bytes to %s",
bytes_written, len, filename);
return EIO;
}
}
else
{
geany_debug("utils_write_file(): could not write to file %s", filename);
return errno;
}
return 0;