• Rob Pike's avatar
    text/template: towards better errors · 7b7a7a57
    Rob Pike authored
    Give the right name for errors, and add a test to check we're
    getting the errors we expect.
    Also fix an ordering bug (calling add after stopParse) that
    caused a nil indirection rather than a helpful error.
    Fixes #3280.
    
    R=golang-dev, adg
    CC=golang-dev
    https://golang.org/cl/6520043
    7b7a7a57
parse.go 14.9 KB