You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/cloud_sql_proxy/cloud_sql_proxy.go
+2-19Lines changed: 2 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -764,7 +764,6 @@ type TranslationResult struct {
764
764
V2Args []string
765
765
LogDebugStdoutbool
766
766
Verbosebool
767
-
Unsupported []string
768
767
LegacySetbool
769
768
V2Compatbool
770
769
V2Modebool
@@ -804,18 +803,14 @@ func main() {
804
803
}
805
804
806
805
// Translation failed
807
-
iftr.V2Compat&&len(tr.Unsupported) >0{
808
-
fmt.Fprintf(os.Stderr, "Error: -v2-compat flag is set, but the following flags are not supported in v2 compatibility mode: %s\n", strings.Join(tr.Unsupported, ", "))
806
+
iftr.V2Compat {
807
+
fmt.Fprintln(os.Stderr, "Error: -v2-compat flag is set, but translation to v2 failed.")
809
808
os.Exit(1)
810
809
}
811
810
812
811
fmt.Fprintln(os.Stderr, "This proxy is using Auth Proxy v1 legacy mode.")
813
812
iftr.LegacySet {
814
813
fmt.Fprintln(os.Stderr, "This proxy is using Auth Proxy v1 legacy mode because the -legacy-v1-proxy flag is set")
815
-
} elseiflen(tr.Unsupported) >0 {
816
-
fmt.Fprintln(os.Stderr, "This proxy is using Auth Proxy v1 legacy mode because it is using")
817
-
fmt.Fprintln(os.Stderr, "flags that are not supported in v2 compatibility mode:")
0 commit comments