eval: Fix (*muster).error

This commit is contained in:
Qi Xiao 2016-02-22 18:20:43 +01:00
parent 940dc16bb1
commit 0d3d44f097

View File

@ -16,7 +16,7 @@ type muster struct {
func (m *muster) error(want, gotfmt string, gotargs ...interface{}) {
m.ec.errorpf(m.begin, m.end, "%s must be %s; got "+gotfmt,
append([]interface{}{m.what, want}, gotargs...))
append([]interface{}{m.what, want}, gotargs...)...)
}
func (ec *EvalCtx) must(vs []Value, what string, begin, end int) *muster {