diff options
Diffstat (limited to 'common/error.c')
-rw-r--r-- | common/error.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/error.c b/common/error.c index 656c7299..51f4f4bc 100644 --- a/common/error.c +++ b/common/error.c @@ -35,6 +35,12 @@ #include "error.h" +DBusMessage *create_errno_message(DBusMessage *msg, int err) +{ + return g_dbus_create_error(msg, ERROR_INTERFACE ".Failed", + strerror(err)); +} + /** org.bluez.Error.DeviceUnreachable: |