Return error if shortcode template.Tree is nil
authorCameron Moore <moorereason@gmail.com>
Sun, 15 Nov 2015 19:53:12 +0000 (13:53 -0600)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 20 Nov 2015 22:34:30 +0000 (23:34 +0100)
commit05c29ad593b8e004c901fdca1f1b75864c1ac91a
treee8162c10d0310085130b6b4c74fa245274ae29eb
parente59aabcf4615b28e3c4224d7a9bbbc1a3091a69c
Return error if shortcode template.Tree is nil

If a shortcode template fails to compile, the template will be non-nil, but
template.Tree will be nil which caused a panic.
hugolib/shortcode.go