uninstall: ignore services error as services may never have started

This commit is contained in:
Girish Ramakrishnan
2026-03-18 14:11:51 +05:30
parent e15cd190b3
commit 6085a8231f
+2 -1
View File
@@ -331,7 +331,8 @@ async function uninstallCommand(app, args, progressCallback) {
await deleteContainers(app, {});
await progressCallback({ percent: 30, message: 'Teardown addons' });
await services.teardownAddons(app, app.manifest.addons);
// if install/clone/restore/import failed early (e.g. invalid image), services may not have started
await safe(services.teardownAddons(app, app.manifest.addons), { debug: log });
await services.teardownPersistentDirs(app);
await progressCallback({ percent: 40, message: 'Cleanup file manager' });