[systemd-devel] [PATCH] localectl: log error if bus_map_all_properties() fails

Lennart Poettering lennart at poettering.net
Thu Feb 13 17:20:54 PST 2014


On Thu, 19.12.13 11:14, Djalal Harouni (tixxdz at opendz.org) wrote:

Applied! Thanks!

> ---
>  src/locale/localectl.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/src/locale/localectl.c b/src/locale/localectl.c
> index b0abe7b..5929169 100644
> --- a/src/locale/localectl.c
> +++ b/src/locale/localectl.c
> @@ -128,8 +128,10 @@ static int show_status(sd_bus *bus, char **args, unsigned n) {
>                                     "/org/freedesktop/locale1",
>                                     map,
>                                     &info);
> -        if (r < 0)
> +        if (r < 0) {
> +                log_error("Could not get properties: %s", strerror(-r));
>                  goto fail;
> +        }
>  
>          print_status_info(&info);
>  


Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list