deploy: Some minor assertion and error message improvements
To help debug https://bugzilla.gnome.org/show_bug.cgi?id=708351 Plus run a status consistently in the tests.
This commit is contained in:
1 parent
9b31b526cc
commit
d1bc9e2acf
2 files changed
+15
-6
No files matched your search
@@ -1018,6 +1018,8 @@ ostree_sysroot_write_deployments (OstreeSysroot *self,
|
||||
gboolean requires_new_bootversion = FALSE;
|
||||
gs_unref_object OstreeBootloader *bootloader = _ostree_sysroot_query_bootloader (self);
|
||||
|
||||
g_assert (self->loaded);
|
||||
|
||||
/* Determine whether or not we need to touch the bootloader
|
||||
* configuration. If we have an equal number of deployments and
|
||||
* more strongly an equal number of deployments per bootcsum, then
|
||||
@@ -1116,7 +1118,10 @@ ostree_sysroot_write_deployments (OstreeSysroot *self,
|
||||
|
||||
/* Now reload from disk */
|
||||
if (!ostree_sysroot_load (self, cancellable, error))
|
||||
goto out;
|
||||
{
|
||||
g_prefix_error (error, "Reloading deployments after commit: ");
|
||||
goto out;
|
||||
}
|
||||
|
||||
ret = TRUE;
|
||||
out:
|
||||
|
||||
Reference in new issue
Block a user