From e1f2f7f194bf8687e19e74ac703923e4c107b46e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 9 Jun 2021 17:24:52 +0200 Subject: [PATCH] shared/install: improve message about template mismatch MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit $ 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. --- src/shared/install.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.47.3