Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: be more explicit about external-url error message (#4177)

Tianzhou (天舟)a7100128f3d9
diff --git a/server/server_frontend_embed.go b/server/server_frontend_embed.go
index 3a617bf737..98549e3e05 100644
--- a/server/server_frontend_embed.go
+++ b/server/server_frontend_embed.go
@@ -52,5 +52,8 @@ func oauthRedirectURL(externalURL string) string {
}
func oauthErrorMessage(externalURL string) string {
+ if profile.ExternalURL == externalURLPlaceholder {
+ return fmt.Sprintf("Failed to exchange OAuth token. You have not configured --external-url, please follow %s", externalURLPlaceholder)
+ }
return fmt.Sprintf("Failed to exchange OAuth token. Make sure --external-url %s matches your browser host. Note that if you are not using port 80 or 443, you should also specify the port such as --external-url=http://host:port", externalURL)
}