Skip to content

Commit

Permalink
improve error message in orchestrator command
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasMahe committed May 5, 2020
1 parent 1737ed4 commit 040cf13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/mesg-cli/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ func startOrchestratorCmd(cdc *codec.Codec) *cobra.Command {
cliCtx := context.NewCLIContext().WithCodec(cdc)

if viper.GetString(flagMnemonic) == "" {
return fmt.Errorf("flags --mnemonic is required")
return fmt.Errorf("mnemonic is required. use flag --mnemonic or config file")
}
if cliCtx.ChainID == "" {
return fmt.Errorf("flag --chain-id is required")
return fmt.Errorf("chain-id is required. use flag --chain-id or config file")
}

logger := log.NewTMLogger(log.NewSyncWriter(os.Stdout)).With("module", "orchestrator")
Expand Down

0 comments on commit 040cf13

Please sign in to comment.