diff --git a/pkg/client/dump.go b/pkg/client/dump.go index fe77b14..6cdbe75 100644 --- a/pkg/client/dump.go +++ b/pkg/client/dump.go @@ -37,7 +37,7 @@ func (d *Dump) Validate(serverVersion string) error { if detected && serverVersion != "" { satisfied := checkVersionRequirement(dumpVersion, serverVersion) if !satisfied { - return fmt.Errorf("pg_dump version %v is too low, must be running %v or order", dumpVersion, serverVersion) + return fmt.Errorf("pg_dump version %v not compatible with server version %v", dumpVersion, serverVersion) } } diff --git a/pkg/client/dump_test.go b/pkg/client/dump_test.go index f640e8a..f194ce8 100644 --- a/pkg/client/dump_test.go +++ b/pkg/client/dump_test.go @@ -30,7 +30,7 @@ func testDumpExport(t *testing.T) { // Test for pg_dump presence assert.NoError(t, dump.Validate("10.0")) assert.NoError(t, dump.Validate("")) - assert.Contains(t, dump.Validate("20").Error(), "is too low, must be running 20 or order") + assert.Contains(t, dump.Validate("20").Error(), "not compatible with server version 20") // Test full db dump err = dump.Export(context.Background(), url, saveFile)