From 022dcdf74517206c99ff8bff430eec2ef875fd61 Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 9 Oct 2024 12:07:25 +0800 Subject: [PATCH] scale: improve error message --- pkg/bbgo/scale.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/bbgo/scale.go b/pkg/bbgo/scale.go index b973319b6..821fd5882 100644 --- a/pkg/bbgo/scale.go +++ b/pkg/bbgo/scale.go @@ -295,7 +295,7 @@ func (rule *SlideRule) Scale() (Scale, error) { 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.,