This commit is contained in:
Tobias Gesellchen
2026-05-22 18:58:57 +02:00
parent b0df8ba963
commit ff61f0ca65
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -780,13 +780,16 @@ func validateServiceURL(serviceURL string) error {
if err != nil {
return fmt.Errorf("invalid --service-url %q: %w", serviceURL, err)
}
if parsed.Hostname() == "" {
hint := ""
if parsed.Scheme != "" && parsed.Opaque != "" {
hint = fmt.Sprintf(" (did you mean %s://%s?)", parsed.Scheme, strings.TrimPrefix(parsed.Opaque, "/"))
}
return fmt.Errorf("invalid --service-url %q: no hostname found%s", serviceURL, hint)
}
return nil
}
@@ -1359,6 +1362,7 @@ func renderPlanSteps(steps []planStep, includePair bool) {
} else {
PrintSuccess("Speaker is already migrated. No action required.")
}
return
}