Skip to content

Commit 2ae7507

Browse files
committed
Fix unregistration err condition
1 parent e6ad546 commit 2ae7507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/pg_unregister/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func processUnregistration(ctx context.Context) error {
4646
machineID := string(machineBytes)
4747

4848
if len(machineID) != 14 {
49-
return fmt.Errorf("invalid machine id: %s. (expected length 16, got %d)", machineID, len(machineBytes))
49+
return fmt.Errorf("invalid machine id: %s", machineID)
5050
}
5151

5252
member, err := node.RepMgr.MemberByNodeName(ctx, conn, machineID)

0 commit comments

Comments
 (0)