Skip to content

Commit

Permalink
chore: improve wraning message
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamu committed Jun 25, 2024
1 parent 4494450 commit b0ac8e9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/actions/module.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package actions

import (
"fmt"
"time"

"github.com/cosmos/cosmos-sdk/codec"
authtx "github.com/cosmos/cosmos-sdk/x/auth/tx"
Expand Down Expand Up @@ -48,7 +48,10 @@ func NewModule(cfg config.Config, cdc codec.Codec, sources *modulestypes.Sources

var node node.Node
if cfg.Node.Type == nodeconfig.TypeLocal {
log.Err(fmt.Errorf("local node is not supported for actions module"))
log.Warn().Str("module", ModuleName).Msg("local node is not supported for actions module, please ensure actions module is removed from the configuration")

// Sleep for 3 seconds to allow the user to see the warning
time.Sleep(3 * time.Second)
} else {
// Build the node
txConfig := authtx.NewTxConfig(cdc, authtx.DefaultSignModes)
Expand Down

0 comments on commit b0ac8e9

Please sign in to comment.