mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-28 07:28:12 +02:00
In dbus_get_autolaunch_address() return all errors as dbus error
This provides a consistent error reporting. Fixes #191
This commit is contained in:
parent
a36cd88514
commit
faef720d9d
1 changed files with 5 additions and 3 deletions
|
|
@ -3189,10 +3189,12 @@ _dbus_get_autolaunch_address (const char *scope, DBusString *address,
|
|||
*ext_idx = '\0';
|
||||
if (!SearchPathA (dbus_module_path, daemon_name, NULL, sizeof(dbus_exe_path), dbus_exe_path, &lpFile))
|
||||
{
|
||||
dbus_set_error_const (error, DBUS_ERROR_FAILED, "could not find dbus-daemon executable");
|
||||
dbus_set_error (error, DBUS_ERROR_FAILED,
|
||||
"Could not find dbus-daemon executable. "
|
||||
"Please add the path to %s to your PATH "
|
||||
"environment variable or start the daemon manually",
|
||||
daemon_name);
|
||||
retval = FALSE;
|
||||
fprintf (stderr, "please add the path to %s to your PATH environment variable\n", daemon_name);
|
||||
fprintf (stderr, "or start the daemon manually\n\n");
|
||||
goto out;
|
||||
}
|
||||
_dbus_verbose ("found dbus daemon executable at %s", dbus_module_path);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue