Skip to content

Commit 766e5c6

Browse files
committed
FlatpakBackend: Add more warnings
1 parent 86b200d commit 766e5c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Core/FlatpakBackend.vala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,6 +1575,7 @@ public class AppCenterCore.FlatpakBackend : Object {
15751575

15761576
var bundle = package.component.get_bundle (AppStream.BundleKind.FLATPAK);
15771577
if (bundle == null) {
1578+
warning ("Failed to install package: component %s has no flatpak bundle", package.component.get_name ());
15781579
job.error = new IOError.FAILED (_("Component has no flatpak bundle"));
15791580
job.results_ready ();
15801581
return;
@@ -1681,6 +1682,7 @@ public class AppCenterCore.FlatpakBackend : Object {
16811682

16821683
unowned var bundle = package.component.get_bundle (AppStream.BundleKind.FLATPAK);
16831684
if (bundle == null) {
1685+
warning ("Failed to remove package: component %s has no flatpak bundle", package.component.get_name ());
16841686
job.error = new IOError.FAILED (_("Component has no flatpak bundle"));
16851687
job.results_ready ();
16861688
return;
@@ -1804,6 +1806,7 @@ public class AppCenterCore.FlatpakBackend : Object {
18041806

18051807
var split_success = get_package_list_key_parts (updatable, out system, null, out bundle_id);
18061808
if (!split_success) {
1809+
warning ("Failed to update package: failed to split package key \"%s\"", updatable);
18071810
job.error = new IOError.FAILED (_("Failed to split package key"));
18081811
job.results_ready ();
18091812
return;

0 commit comments

Comments
 (0)