Commit 0c87a1b0 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

better error reporting in case of a parser error.

2004-03-03  Sven Neumann  <sven@gimp.org>

	* app/vectors/gimpvectors-import.c (gimp_vectors_import): better
	error reporting in case of a parser error.
parent 0119e6e8
2004-03-03 Sven Neumann <sven@gimp.org>
* app/vectors/gimpvectors-import.c (gimp_vectors_import): better
error reporting in case of a parser error.
2004-03-03 Simon Budig <simon@gimp.org>
* app/xcf/xcf-load.c: make the path-loading debug output conditional.
......@@ -296,6 +296,16 @@ gimp_vectors_import (GimpImage *image,
success = FALSE;
}
}
else if (error && *error && filename) /* parser reported an error */
{
gchar *msg = (*error)->message;
(*error)->message =
g_strdup_printf (_("Failed to import paths from '%s': %s"),
gimp_filename_to_utf8 (filename), msg);
g_free (msg);
}
while ((base = g_queue_pop_head (parser.stack)) != NULL)
{
......
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