Add format specifier for error
parent
b5757b8502
commit
c8c9db9f8f
|
@ -176,7 +176,8 @@ typedef gboolean (*CheckFunc)(const char *str);
|
||||||
static gboolean
|
static gboolean
|
||||||
check (WireguardEditorPrivate *priv,
|
check (WireguardEditorPrivate *priv,
|
||||||
char *widget_name,
|
char *widget_name,
|
||||||
CheckFunc chk, const char *key,
|
CheckFunc chk,
|
||||||
|
const char *key,
|
||||||
gboolean set_error,
|
gboolean set_error,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
|
@ -193,6 +194,7 @@ check (WireguardEditorPrivate *priv,
|
||||||
g_set_error (error,
|
g_set_error (error,
|
||||||
NMV_EDITOR_PLUGIN_ERROR,
|
NMV_EDITOR_PLUGIN_ERROR,
|
||||||
NMV_EDITOR_PLUGIN_ERROR_INVALID_PROPERTY,
|
NMV_EDITOR_PLUGIN_ERROR_INVALID_PROPERTY,
|
||||||
|
"%s",
|
||||||
key);
|
key);
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue