Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
leehinman committed Jun 13, 2024
1 parent d6d80d8 commit 6283cc7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/pkg/agent/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,13 @@ func Install(cfgFile, topPath string, unprivileged bool, log *logp.Logger, pt *p
fmt.Sprintf("failed to install service (%s)", paths.ServiceName),
errors.M("service", paths.ServiceName))
}
serviceConfigure(ownership)
err = serviceConfigure(ownership)
if err != nil {
pt.Describe("Failed to configure service")
_ = svc.Uninstall()
return ownership, fmt.Errorf("failed to configure service (%s): %w", paths.ServiceName, err)
}

pt.Describe("Installed service")

return ownership, nil
Expand Down

0 comments on commit 6283cc7

Please sign in to comment.