diff options
author | Russ Cox <rsc@golang.org> | 2010-03-30 10:34:57 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-03-30 10:34:57 -0700 |
commit | 74119689619c24f5871056d13d07d56f69ad5f60 (patch) | |
tree | 2ad4647a66bf21bf56d761edba537c237b8e318a /src/pkg/template | |
parent | 74339da2d519a795f33d78f8694eb7b97065d9d7 (diff) | |
download | golang-74119689619c24f5871056d13d07d56f69ad5f60.tar.gz |
single argument panic
note that sortmain.go has been run through hg gofmt;
only the formatting of the day initializers changed.
i'm happy to revert that formatting if you'd prefer.
stop on error in doc/progs/run
R=r
CC=golang-dev
http://codereview.appspot.com/850041
Diffstat (limited to 'src/pkg/template')
-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 e2f70c1a5..54c22ba8d 100644 --- a/src/pkg/template/template.go +++ b/src/pkg/template/template.go @@ -983,7 +983,7 @@ func ParseFile(filename string, fmap FormatterMap) (t *Template, err os.Error) { func MustParse(s string, fmap FormatterMap) *Template { t, err := Parse(s, fmap) if err != nil { - panic("template parse error: ", err.String()) + panic("template.MustParse error: " + err.String()) } return t } @@ -993,7 +993,7 @@ func MustParse(s string, fmap FormatterMap) *Template { func MustParseFile(filename string, fmap FormatterMap) *Template { b, err := ioutil.ReadFile(filename) if err != nil { - panic("template parse error: ", err.String()) + panic("template.MustParseFile error: " + err.String()) } return MustParse(string(b), fmap) } |