diff options
Diffstat (limited to 'src/pkg/template/template.go')
-rw-r--r-- | src/pkg/template/template.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/template/template.go b/src/pkg/template/template.go index b507c3c9e..c32a742b8 100644 --- a/src/pkg/template/template.go +++ b/src/pkg/template/template.go @@ -187,14 +187,14 @@ func New(fmap FormatterMap) *Template { } // Report error and stop executing. The line number must be provided explicitly. -func (t *Template) execError(st *state, line int, err string, args ...) { +func (t *Template) execError(st *state, line int, err string, args ...interface{}) { st.errors <- &Error{line, fmt.Sprintf(err, args)} runtime.Goexit() } // Report error, save in Template to terminate parsing. // The line number comes from the template state. -func (t *Template) parseError(err string, args ...) { +func (t *Template) parseError(err string, args ...interface{}) { t.error = &Error{t.linenum, fmt.Sprintf(err, args)} } |