Skip to content

Commit

Permalink
Move warning back to update all
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Jul 2, 2024
1 parent 69c8579 commit c675e30
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Core/UpdateManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,7 @@ public class AppCenterCore.UpdateManager : Object {
runtime_updates.update_state ();

if (AppCenter.App.settings.get_boolean ("automatic-updates")) {
try {
yield update_all (cancellable);
} catch (Error e) {
warning ("Automatic updates failed: %s", e.message);
}
yield update_all (cancellable);
} else {
var application = Application.get_default ();
if (updates_number > 0) {
Expand Down Expand Up @@ -206,6 +202,7 @@ public class AppCenterCore.UpdateManager : Object {
break;
}

warning ("Updating %s failed: %s", package.get_name (), e.message);
throw (e);
}

Expand Down

0 comments on commit c675e30

Please sign in to comment.