summaryrefslogtreecommitdiff
path: root/src/error.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-05-15 14:34:54 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-05-15 14:34:54 -0700
commitfe6586e923507bff6f15ae160ace4f8d40ffc573 (patch)
treed64f5856b06db6218f5204709953a313bb1b621d /src/error.c
parent1916aa601dafa4915c0f0a47a114b1007dadb09c (diff)
downloadconnman-fe6586e923507bff6f15ae160ace4f8d40ffc573.tar.gz
connman-fe6586e923507bff6f15ae160ace4f8d40ffc573.tar.bz2
connman-fe6586e923507bff6f15ae160ace4f8d40ffc573.zip
Add descriptions to all D-Bus error messages
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/error.c b/src/error.c
index 38e90d98..844be333 100644
--- a/src/error.c
+++ b/src/error.c
@@ -41,56 +41,55 @@ DBusMessage *__connman_error_failed(DBusMessage *msg, int errnum)
DBusMessage *__connman_error_invalid_arguments(DBusMessage *msg)
{
return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE
- ".InvalidArguments", NULL);
+ ".InvalidArguments", "Invalid arguments");
}
DBusMessage *__connman_error_permission_denied(DBusMessage *msg)
{
return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE
- ".PermissionDenied", NULL);
+ ".PermissionDenied", "Permission denied");
}
DBusMessage *__connman_error_not_supported(DBusMessage *msg)
{
return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE
- ".NotSupported", NULL);
+ ".NotSupported", "Not supported");
}
DBusMessage *__connman_error_not_implemented(DBusMessage *msg)
{
return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE
- ".NotImplemented", NULL);
+ ".NotImplemented", "Not implemented");
}
DBusMessage *__connman_error_no_carrier(DBusMessage *msg)
{
return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE
- ".NoCarrier", NULL);
+ ".NoCarrier", "No carrier");
}
DBusMessage *__connman_error_in_progress(DBusMessage *msg)
{
return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE
- ".InProgress", NULL);
-
+ ".InProgress", "In progress");
}
DBusMessage *__connman_error_already_connected(DBusMessage *msg)
{
return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE
- ".AlreadyConnected", NULL);
+ ".AlreadyConnected", "Already connected");
}
DBusMessage *__connman_error_operation_aborted(DBusMessage *msg)
{
return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE
- "OperationAborted", NULL);
+ "OperationAborted", "Operation aborted");
}
DBusMessage *__connman_error_operation_timeout(DBusMessage *msg)
{
return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE
- "OperationTimeout", NULL);
+ "OperationTimeout", "Operation timeout");
}