mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
show missing exchange name in the back-test config
This commit is contained in:
parent
e30c288e7e
commit
c9c16f1e47
|
@ -88,7 +88,7 @@ func NewExchange(sourceName types.ExchangeName, sourceExchange types.Exchange, s
|
|||
// fallback to the legacy account syntax
|
||||
configAccount, ok = config.Account[sourceName.String()]
|
||||
if !ok {
|
||||
return nil, errors.New("config backtest.accounts is not defined, please check your config file.")
|
||||
return nil, fmt.Errorf("config backtest.accounts[%s] is not defined, please check your config file.", sourceName.String())
|
||||
} else {
|
||||
log.Warnf("config backtest.account is deprecated, please use backtest.accounts instead.")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user