fix: correct error message for --gated flag (#1391)

The command can be invoked as 'bd ready --gated' or 'bd mol ready --gated',
but the error message incorrectly said 'mol ready --gated'. Updated to
show 'bd ready --gated' which is the more common invocation.
This commit is contained in:
Lasse Larsen 2026-01-31 07:18:23 +01:00 • committed by GitHub
commit 8afd0a008f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,11 +49,11 @@ Examples:
func runMolReadyGated(cmd *cobra.Command, args []string) {
ctx := rootCtx
// mol ready --gated requires direct store access
// --gated mode requires direct store access
if store == nil {
if daemonClient != nil {
fmt.Fprintf(os.Stderr, "Error: mol ready --gated requires direct database access\n")
fmt.Fprintf(os.Stderr, "Hint: use --no-daemon flag: bd --no-daemon mol ready --gated\n")
fmt.Fprintf(os.Stderr, "Error: bd ready --gated requires direct database access\n")
fmt.Fprintf(os.Stderr, "Hint: use --no-daemon flag: bd --no-daemon ready --gated\n")
} else {
fmt.Fprintf(os.Stderr, "Error: no database connection\n")
}