scale: improve error message

This commit is contained in:
c9s 2024-10-09 12:07:25 +08:00
parent 956ad10683
commit 022dcdf745
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -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.,