set the error in the GIMP_CONFIG_ERROR domain.

2008-11-12  Sven Neumann  <sven@gimp.org>

	* libgimpconfig/gimpconfig-path.c 
(gimp_config_path_expand_only):
	set the error in the GIMP_CONFIG_ERROR domain.


svn path=/trunk/; revision=27630
This commit is contained in:
Sven Neumann 2008-11-12 11:57:07 +00:00 committed by Sven Neumann
parent 7fa22ebf17
commit a9b1b41eef
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-11-12 Sven Neumann <sven@gimp.org>
* libgimpconfig/gimpconfig-path.c (gimp_config_path_expand_only):
set the error in the GIMP_CONFIG_ERROR domain.
2008-11-12 Sven Neumann <sven@gimp.org>
* libgimpmodule/gimpmodule.[ch]: added GIMP_MODULE_ERROR domain.

View File

@ -29,6 +29,7 @@
#include "libgimpbase/gimpbase.h"
#include "gimpconfig-error.h"
#include "gimpconfig-path.h"
#include "libgimp/libgimp-intl.h"
@ -374,7 +375,8 @@ gimp_config_path_expand_only (const gchar *path,
if (!s)
{
g_set_error (error, 0, 0, _("Cannot expand ${%s}"), token);
g_set_error (error, GIMP_CONFIG_ERROR, GIMP_CONFIG_ERROR_PARSE,
_("Cannot expand ${%s}"), token);
g_free (token);
goto cleanup;
}