diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-03-21 22:50:25 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-03-21 22:53:29 +0100 |
commit | e3017af97310da024ffb378ed155bc1676922ce7 (patch) | |
tree | a09b0a555b89f7ec00d0ab62294770db99c5642a /src/libsystemd-bus/bus-error.c | |
parent | 43b4c9aaf56aefdc55c4b6c1df78e30cdcf3988f (diff) |
bus: implement full method call timeout logic
Diffstat (limited to 'src/libsystemd-bus/bus-error.c')
-rw-r--r-- | src/libsystemd-bus/bus-error.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-error.c b/src/libsystemd-bus/bus-error.c index 55b418768a..5faa17384e 100644 --- a/src/libsystemd-bus/bus-error.c +++ b/src/libsystemd-bus/bus-error.c @@ -168,3 +168,10 @@ int bus_error_from_errno(sd_bus_error *e, int error) { return error; } + +const char *bus_error_message(const sd_bus_error *e, int error) { + if (e && e->message) + return e->message; + + return strerror(error); +} |