services: Make error message less scary.

* gnu/services.scm (service-back-edges): Show the type name of SERVICE
instead of SERVICE in error message.
This commit is contained in:
Ludovic Courtès 2017-07-11 00:47:03 +02:00
parent 0ca3d55686
commit 638e9deaf8
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 3 additions and 2 deletions

View File

@ -624,9 +624,10 @@ kernel."
(target-type target-type))
(&message
(message
(format #f (G_ "no target of type '~a' for service ~s")
(format #f (G_ "no target of type '~a' for service '~a'")
(service-type-name target-type)
service))))))
(service-type-name
(service-kind service))))))))
(x
(raise
(condition (&ambiguous-target-service-error