mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
scale: improve error message
This commit is contained in:
parent
956ad10683
commit
022dcdf745
|
@ -295,7 +295,7 @@ func (rule *SlideRule) Scale() (Scale, error) {
|
||||||
return rule.QuadraticScale, nil
|
return rule.QuadraticScale, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil, errors.New("no any scale is defined")
|
return nil, fmt.Errorf("no any scale is defined, avaiable scales: log, exp, linear, quadratic")
|
||||||
}
|
}
|
||||||
|
|
||||||
// LayerScale defines the scale DSL for maker layers, e.g.,
|
// LayerScale defines the scale DSL for maker layers, e.g.,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user