hugolib: Change to output non-panic error message if missing shortcode template
authorVazrupe (HyeonGyu Lee) <vazrupe@naver.com>
Mon, 19 Aug 2019 14:26:53 +0000 (23:26 +0900)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 22 Aug 2019 08:40:16 +0000 (10:40 +0200)
commitfd3d90ced85baaf6941be45b2fe29c25ff755c18
treedca0a5cfe2fa3ece6de50b023372c82ea9a3eda0
parent3ae4b3e19ff6be90d21b0cc38fa6ed37a83bd505
hugolib: Change to output non-panic error message if missing shortcode template

A panic occurred when the `nested` variable was nil.
Changed to check if the `nested` variable is nil.

Fixes #6075
hugolib/shortcode.go