Skip to content

Commit 3f00acf

Browse files
committed
Fix error message
1 parent 51f10f7 commit 3f00acf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/flypg/node.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func (n *Node) PostInit() error {
212212
case "":
213213
// Check if we can be a primary
214214
if !repmgr.eligiblePrimary() {
215-
return fmt.Errorf("no primary to follow and can't configure self as primary because primary region is '%s' and we are in '%s'", repmgr.Region, os.Getenv("PRIMARY_REGION"))
215+
return fmt.Errorf("no primary to follow and can't configure self as primary because primary region is '%s' and we are in '%s'", os.Getenv("PRIMARY_REGION"), repmgr.Region)
216216
}
217217

218218
// Create required users

0 commit comments

Comments
 (0)