diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-03-08 02:27:43 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-03-08 02:27:43 +0100 |
commit | 08672cb5071af320127f6fe8d0916f62bedd82f3 (patch) | |
tree | d91cc733ba11fe57de18901ce584e325489ad23b /src/dbus-job.c | |
parent | 83310f162d2a78913b2748aaa5ffb1ae8226484f (diff) |
dbus: return DBUS_ERROR_UNKNOWN_OBJECT when an object is unknown
Diffstat (limited to 'src/dbus-job.c')
-rw-r--r-- | src/dbus-job.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dbus-job.c b/src/dbus-job.c index 2a33039bdb..e90d585b63 100644 --- a/src/dbus-job.c +++ b/src/dbus-job.c @@ -193,8 +193,11 @@ static DBusHandlerResult bus_job_message_handler(DBusConnection *connection, DBu if (r == -ENOMEM) return DBUS_HANDLER_RESULT_NEED_MEMORY; - if (r == -ENOENT) - return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; + if (r == -ENOENT) { + DBusError e; + dbus_set_error_const(&e, DBUS_ERROR_UNKNOWN_OBJECT, "Unknown job"); + return bus_send_error_reply(m, connection, message, &e, r); + } return bus_send_error_reply(m, connection, message, NULL, r); } |