Skip to content

Commit

Permalink
error strings should not be capitalized (ST1005)
Browse files Browse the repository at this point in the history
moreover, dump the inner error

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
  • Loading branch information
fgiudici committed Aug 7, 2024
1 parent 6681ea5 commit b17f4c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/register/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func newCommand(fs vfs.FS, client register.Client, stateHandler register.StateHa
if cfg.Elemental.Registration.NoToolkit {
log.Info("Installing local agent config")
if err := installer.WriteLocalSystemAgentConfig(cfg.Elemental); err != nil {
return fmt.Errorf("Installing local agent config")
return fmt.Errorf("installing local agent config %w", err)
}
} else {
log.Info("Installing elemental")
Expand Down

0 comments on commit b17f4c8

Please sign in to comment.