Kaydet (Commit) dc422fb7 authored tarafından Enrico Tröger's avatar Enrico Tröger

added error messages to utils_write_file()


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@259 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 1ba4caa8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment