Commit cbbf9397 authored by Jon Kåre Hellan's avatar Jon Kåre Hellan
Browse files

Call gnumeric_error_save on failure.

	* text-io.c (text_write_workbook): Call gnumeric_error_save on
parent 096af80f
......@@ -412,8 +412,10 @@ text_write_workbook (CommandContext *context, Workbook *wb,
* Open Output File
data.file = fopen (filename, "w");
if (data.file == NULL)
if (!data.file) {
gnumeric_error_save (context, g_strerror (errno));
return -1;
writeTextWorkbook (&data, wb);
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