nspawn: log at error level before exiting if parsing OCI fails

Currently it silently errors out, with nothing at all printed on the
console

Follow-up for de40a3037a
This commit is contained in:
Luca Boccassi
2026-07-16 17:41:27 +01:00
parent 8009fa4984
commit 2ef10ee3f1
+2 -2
View File
@@ -2123,9 +2123,9 @@ int oci_load(FILE *f, const char *bundle, Settings **ret) {
if (!s->bundle)
return log_oom();
r = oci_dispatch(oci, table, 0, s);
r = oci_dispatch(oci, table, /* flags= */ 0, s);
if (r < 0)
return r;
return log_error_errno(r, "Failed to parse OCI bundle configuration file '%s': %m", path);
if (s->properties) {
r = sd_bus_message_seal(s->properties, 0, 0);