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

Include error code string in the debug message if a file could not be written.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1812 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 704940dc
......@@ -4,6 +4,8 @@
po/POTFILES.in, src/plugins.c, src/plugindata.h:
New plugin: Export as HTML and LaTeX.
Add some functions to the plugin API needed by the Export plugin.
* src/utils.c: Include error code string in the debug message if a file
could not be written.
2007-08-17 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
......
......@@ -246,7 +246,8 @@ gint utils_write_file(const gchar *filename, const gchar *text)
}
else
{
geany_debug("utils_write_file(): could not write to file %s", filename);
geany_debug("utils_write_file(): could not write to file %s (%s)",
filename, g_strerror(errno));
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