logind: log a more accurate error when we failed at session creation
authorFranck Bui <fbui@suse.com>
Tue, 17 Mar 2020 17:30:58 +0000 (18:30 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 26 Mar 2020 13:08:30 +0000 (14:08 +0100)
commit8f0feac20f7d4c29a42839343308fcd602ec5b63
tree5cd72106684ae8492dbb0d90ee32437303c2c73c
parenta0b4460e49d0bf537a4fc3db37d56aa04ef41c36
logind: log a more accurate error when we failed at session creation

We used to log the following error:

  "Start job for unit user-1000.slice failed with 'canceled'"

which can be really misleading if the actual job failed at *stopping* a unit.

Indeed "Start" was hard coded but it was wrong since we can also fail with stop
jobs which are enqueued when a session is stopped.

(cherry picked from commit b39648ed47065202b343d1d4bde3232d81fdfecc)
src/login/logind-dbus.c