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:
parent
761d2e7637
commit
8afd0a008f
1 changed files with 3 additions and 3 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue