Skip to content

Commit

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

Signed-off-by: Francesco Giudici <[email protected]>
  • Loading branch information
fgiudici authored Aug 9, 2024
1 parent 3f18559 commit 2858dad
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 @@ -133,7 +133,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("Retrieving Network configuration")
Expand Down

0 comments on commit 2858dad

Please sign in to comment.