We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 537694f commit f761ee6Copy full SHA for f761ee6
internal/update/apt/service.go
@@ -287,7 +287,10 @@ func restartServices(ctx context.Context) error {
287
if err != nil {
288
return err
289
}
290
- return needRestartCmd.RunWithinContext(ctx)
+ if out, err := needRestartCmd.RunAndCaptureCombinedOutput(ctx); err != nil {
291
+ return fmt.Errorf("error running needrestart command: %w: %s", err, out)
292
+ }
293
+ return nil
294
295
296
func listUpgradablePackages(ctx context.Context, matcher func(update.UpgradablePackage) bool) ([]update.UpgradablePackage, error) {
0 commit comments