#228 Changed error method accordingly @wolfogre
This commit is contained in:
parent
3ab04768e8
commit
a228edaaf6
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ func registerInteractive(configFile string) error {
|
|||
if stage == StageWaitingForRegistration {
|
||||
log.Infof("Registering runner, name=%s, instance=%s, labels=%v.", inputs.RunnerName, inputs.InstanceAddr, inputs.CustomLabels)
|
||||
if err := doRegister(cfg, inputs); err != nil {
|
||||
return errors.New("Failed to register runner: " + err.Error())
|
||||
return fmt.Errorf("Failed to register runner: %w", err)
|
||||
} else {
|
||||
log.Infof("Runner registered successfully.")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue