Correct format for error sum

This commit is contained in:
TeoV
2018-11-07 10:58:09 -05:00
committed by Dan Christian Bogos
parent d9b4ca7018
commit d9ad8dba69

View File

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