Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panicln no longer exists in latest release of Go #3

Closed
peterbourgon opened this issue Apr 1, 2010 · 1 comment
Closed

panicln no longer exists in latest release of Go #3

peterbourgon opened this issue Apr 1, 2010 · 1 comment

Comments

@peterbourgon
Copy link

mustache.go can be updated:

  $ git diff
  diff --git a/mustache.go b/mustache.go
  index 146099a..18b5f7c 100644
  --- a/mustache.go
  +++ b/mustache.go
  @@ -156,7 +156,7 @@ func (tmpl *template) parseSection(section *sectionElement) os.Error {
               tmpl.elems.Push(partial)
           case '=':
               if tag[len(tag)-1] != '=' {
  -                panicln("Invalid meta tag")
  +                panic("Invalid meta tag")
               }
               tag = strings.TrimSpace(tag[1 : len(tag)-1])
               newtags := strings.Split(tag, " ", 0)
  @@ -227,7 +227,7 @@ func (tmpl *template) parse() os.Error {
               tmpl.elems.Push(partial)
           case '=':
               if tag[len(tag)-1] != '=' {
  -                panicln("Invalid meta tag")
  +                panic("Invalid meta tag")
               }
               tag = strings.TrimSpace(tag[1 : len(tag)-1])
               newtags := strings.Split(tag, " ", 0)
@hoisie
Copy link
Owner

hoisie commented Apr 1, 2010

Thanks, just pushed a fix for this.

marksalpeter pushed a commit to dealyze/mustache that referenced this issue Mar 9, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants