]> code.ossystems Code Review - openembedded-core.git/commitdiff
systemd.bbclass: improve error message when a service unit specified in SYSTEMD_SERVI...
authorChris Laplante <mostthingsweb@gmail.com>
Mon, 11 Jan 2021 17:52:49 +0000 (12:52 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 13 Jan 2021 23:12:25 +0000 (23:12 +0000)
The previous message was fairly useless without diving into the bbclass.

Signed-off-by: Chris Laplante <mostthingsweb@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/systemd.bbclass

index 9ec465c75934b5e64bef23a88d8b862be0dd8148..db5d109545a290c2d07fcc9d33fb536205e73c47 100644 (file)
@@ -174,7 +174,8 @@ python systemd_populate_packages() {
                 if path_found != '':
                     systemd_add_files_and_parse(pkg_systemd, path_found, service, keys)
                 else:
-                    bb.fatal("SYSTEMD_SERVICE_%s value %s does not exist" % (pkg_systemd, service))
+                    bb.fatal("Didn't find service unit '{0}', specified in SYSTEMD_SERVICE_{1}. {2}".format(
+                        service, pkg_systemd, "Also looked for service unit '{0}'.".format(base) if base is not None else ""))
 
     def systemd_create_presets(pkg, action):
         presetf = oe.path.join(d.getVar("PKGD"), d.getVar("systemd_unitdir"), "system-preset/98-%s.preset" % pkg)