* Replace a couple of NULL error messages with something useful

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1916 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Antony Mee
2006-08-04 10:34:06 +00:00
parent 62c65522e0
commit 8da8ab101f

View File

@@ -1064,20 +1064,22 @@ static gboolean nm_ppp_dbus_handle_start_vpn (DBusMessage *message, NmPPPData *d
DBUS_TYPE_INVALID))
{
nm_warning ("Could not process the request because its arguments were invalid. dbus said: '%s'", error.message);
nm_ppp_dbus_signal_failure (data, NM_DBUS_VPN_SIGNAL_VPN_CONFIG_BAD,NULL);
nm_ppp_dbus_signal_failure (data, NM_DBUS_VPN_SIGNAL_VPN_CONFIG_BAD,"NM made an invalid DBUS request");
dbus_error_free (&error);
goto out;
}
if (!nm_ppp_config_options_validate (data, data_items, num_items))
{
nm_ppp_dbus_signal_failure (data, NM_DBUS_VPN_SIGNAL_VPN_CONFIG_BAD,NULL);
nm_ppp_dbus_signal_failure (data, NM_DBUS_VPN_SIGNAL_VPN_CONFIG_BAD,
"Validating options failed");
goto out;
}
if (!nm_ppp_store_auth_info (data, auth_items, num_auth_items))
{
nm_ppp_dbus_signal_failure (data, NM_DBUS_VPN_SIGNAL_LOGIN_FAILED,NULL);
nm_ppp_dbus_signal_failure (data, NM_DBUS_VPN_SIGNAL_LOGIN_FAILED,
"Could not store authentication information correctly");
goto out;
}