From: Zbigniew Jędrzejewski-Szmek Date: Wed, 9 Jun 2021 15:24:52 +0000 (+0200) Subject: shared/install: improve message about template mismatch X-Git-Tag: v249-rc1~42^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e1f2f7f194bf8687e19e74ac703923e4c107b46e;p=thirdparty%2Fsystemd.git shared/install: improve message about template mismatch $ systemctl enable --root=/ serial-getty@.service Failed to enable unit, unit getty.target is a non-template unit. ↓ Failed to enable serial-getty@.service, destination unit getty.target is a non-template unit. --- diff --git a/src/shared/install.c b/src/shared/install.c index 1cae42df6bd..c10c15b9ff8 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -382,8 +382,8 @@ void unit_file_dump_changes(int r, const char *verb, const UnitFileChange *chang logged = true; break; case -EIDRM: - log_error_errno(changes[i].type_or_errno, "Failed to %s unit, unit %s is a non-template unit.", - verb, changes[i].path); + log_error_errno(changes[i].type_or_errno, "Failed to %s %s, destination unit %s is a non-template unit.", + verb, changes[i].source, changes[i].path); logged = true; break; case -EUCLEAN: