civodul pushed a commit to branch devel in repository shepherd. commit 5e326cda8c42f6df3c1a716edcd67a5edd219411 Author: Ludovic Courtès <l...@gnu.org> AuthorDate: Sun Aug 11 19:22:17 2024 +0200
shepherd: Report service name upon action error. * modules/shepherd.scm (configuration-file-loader): Add call to ‘service-canonical-name’ when printing action error message. --- modules/shepherd.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/shepherd.scm b/modules/shepherd.scm index 7fec9cd..8f1d727 100644 --- a/modules/shepherd.scm +++ b/modules/shepherd.scm @@ -181,7 +181,8 @@ using fallback mechanism.")) (guard (c ((action-runtime-error? c) (local-output (l10n "action '~a' on service '~a' failed: ~s") (action-runtime-error-action c) - (action-runtime-error-service c) + (service-canonical-name + (action-runtime-error-service c)) (cons (action-runtime-error-key c) (action-runtime-error-arguments c))) (failure))