recorder: Print absolute path if output file can't be opened

This commit is contained in:
Timm Bäder 2016-08-19 19:10:28 +02:00
parent 2c3e0dab0f
commit d658a5148a

View File

@ -1075,7 +1075,7 @@ recorder_open_outfile (ShellRecorder *recorder,
if (outfile == -1 && errno != EEXIST) if (outfile == -1 && errno != EEXIST)
{ {
g_warning ("Cannot open output file '%s': %s", filename->str, g_strerror (errno)); g_warning ("Cannot open output file '%s': %s", path, g_strerror (errno));
g_string_free (filename, TRUE); g_string_free (filename, TRUE);
g_free (path); g_free (path);
goto out; goto out;