mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 12:49:54 +05:00
Correct format for error sum
This commit is contained in:
committed by
Dan Christian Bogos
parent
d9b4ca7018
commit
d9ad8dba69
@@ -325,7 +325,7 @@ func GreaterThan(item, oItem interface{}, orEqual bool) (gte bool, err error) {
|
||||
func Sum(items ...interface{}) (sum interface{}, err error) {
|
||||
//we need at least 2 items to sum them
|
||||
if len(items) < 2 {
|
||||
return nil, fmt.Errorf("Not enough parameters : %s", len(items))
|
||||
return nil, fmt.Errorf("Not enough parameters : %d", len(items))
|
||||
}
|
||||
|
||||
// convert the type for first item
|
||||
|
||||
Reference in New Issue
Block a user