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.
2 parents 526ab38 + 2fe2a9a commit 5c02454Copy full SHA for 5c02454
internal/flypg/repmgr.go
@@ -172,7 +172,7 @@ func (r *RepMgr) registerPrimary() error {
172
func (r *RepMgr) unregisterPrimary(id int) error {
173
cmdStr := fmt.Sprintf("repmgr primary unregister -f %s --node-id=%d", r.ConfigPath, id)
174
if err := utils.RunCommand(cmdStr); err != nil {
175
- fmt.Printf("failed to unregister primary: %s", err)
+ return err
176
}
177
178
return nil
0 commit comments