]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: slightly improve error message on load errors
authorLennart Poettering <lennart@poettering.net>
Fri, 12 Feb 2021 22:39:49 +0000 (23:39 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 13 Feb 2021 08:46:39 +0000 (17:46 +0900)
commit6b10a2e03033738844a882c3d4fb46a08e8c26a1
tree8c44370230518ccd9824ad7a1155a352b7dbccb2
parent9ae4f96056d6cc5663dd3b6c923f0124ba163225
core: slightly improve error message on load errors

Let's be a bit more helpful when refusing jobs on units that failed to
load properly. We already have explicit D-Bus errors for the error
conditions that are common and expected (such as "not found"), but for
the rest we so far generate a fairly cryptic message.

Let's try to be friendlier towards users and suggest what to do on such
errors.

Fixes: #16487
src/core/dbus-unit.c