mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-14 02:53:50 +00:00
improve the error message
This commit is contained in:
parent
f1e3cc6049
commit
5ef1ee927b
|
@ -181,7 +181,7 @@ var BacktestCmd = &cobra.Command{
|
||||||
// if we don't have klines before the start time endpoint, the back-test will fail.
|
// if we don't have klines before the start time endpoint, the back-test will fail.
|
||||||
// because the last price will be missing.
|
// because the last price will be missing.
|
||||||
if syncFromTime.Before(firstKLine.EndTime) {
|
if syncFromTime.Before(firstKLine.EndTime) {
|
||||||
return fmt.Errorf("the sync-from-time you gave %s is earlier than the previous sync entry %s. "+
|
return fmt.Errorf("the sync-from-time you gave %s is earlier than the previous sync-start-time %s. "+
|
||||||
"re-syncing data from the earlier date before your first sync is not support,"+
|
"re-syncing data from the earlier date before your first sync is not support,"+
|
||||||
"please clean up the kline table and restart a new sync",
|
"please clean up the kline table and restart a new sync",
|
||||||
syncFromTime,
|
syncFromTime,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user