#730567 libglib2.0-bin: unhelpful error message "Error: Timeout was reached" from gdbus

Package:
libglib2.0-bin
Source:
glib2.0
Description:
Programs for the GLib library
Submitter:
Vincent Lefevre
Date:
2021-05-27 17:21:08 UTC
Severity:
normal
Tags:
#730567#5
Date:
2013-11-26 16:30:44 UTC
From:
To:
It appears that gdbus can output the error message:

  Error: Timeout was reached

so that when it is used in a script, the user cannot know where
this message comes from and is confused. See

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=729527

for instance.

When outputting an error message, a utility must always identifies
itself. Here, it should be:

  gdbus: Error: Timeout was reached

or

  gdbus error: Timeout was reached

(but since the error message comes from libgio, I suppose that the
former string is simpler to generate, e.g. with "gdbus: %s").

#730567#10
Date:
2013-11-26 17:31:07 UTC
From:
To:
Actually, the line at fault appears to be in the gdbus utility
(gdbus-tool.c) rather than anything to do with the library:

      g_printerr (_("Error: %s\n"), error->message);

so either form would work.

All the g_printerr() calls in that file have the same problem of not
providing the context of "who said that?" when gdbus is used
noninteractively.

    S