chiark / gitweb /
systemd-analyze verify: improve error message
[elogind.git] / src / core / transaction.c
index 805d40ae6a13c6004695717d641a8967902f87fc..1f4c9ce416da2c110911b48af86305602858b2f0 100644 (file)
@@ -870,7 +870,7 @@ int transaction_add_job_and_dependencies(
         }
 
         if (type != JOB_STOP && unit->load_state == UNIT_ERROR) {
-                if (unit->load_error == -ENOENT)
+                if (unit->load_error == -ENOENT || unit->manager->test_run)
                         sd_bus_error_setf(e, BUS_ERROR_LOAD_FAILED,
                                           "Unit %s failed to load: %s.",
                                           unit->id,