mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-04 10:57:50 +08:00
eval: Fix (*muster).error
This commit is contained in:
parent
940dc16bb1
commit
0d3d44f097
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user