Skip to content
Snippets Groups Projects
Unverified Commit e8507b75 authored by Benjamin Bollen's avatar Benjamin Bollen
Browse files

Fix bug: failure to load Tendermint configuration file; error was silently ignored

improve error line
parent 54c17aba
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ func NewTendermintNode(moduleConfig *config.ModuleConfig,
// to be written in tendermint's root directory.
// NOTE: [ben] as elsewhere Sub panics if config file does not have this
// subtree. To shield in go-routine, or PR to viper.
if !moduleConfig.Config.IsSet("confighuration") {
if !moduleConfig.Config.IsSet("configuration") {
return nil, fmt.Errorf("Failed to extract Tendermint configuration subtree.")
}
tendermintConfigViper := moduleConfig.Config.Sub("configuration")
......
......@@ -58,7 +58,9 @@ func NewCore(chainId string, consensusConfig *config.ModuleConfig,
}
log.Debug("Loaded pipe with application manager")
// pass the consensus engine into the pipe
consensus.LoadConsensusEngineInPipe(consensusConfig, pipe)
if e := consensus.LoadConsensusEngineInPipe(consensusConfig, pipe); e != nil {
return nil, fmt.Errorf("Failed to load consensus engine in pipe: %v", e)
}
tendermintPipe, err := pipe.GetTendermintPipe()
if err != nil {
log.Warn(fmt.Sprintf("Tendermint gateway not supported by %s",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment