From: Bjørn Erik Pedersen Date: Tue, 21 Feb 2017 21:53:37 +0000 (+0100) Subject: hugolib: Include full filepath on shortcode errors X-Git-Tag: v0.19~21 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=62783935401f2d68ef1a0057bf41c7d2e9256dc4;p=brevno-suite%2Fhugo hugolib: Include full filepath on shortcode errors Fixes #3079 --- diff --git a/hugolib/shortcode.go b/hugolib/shortcode.go index 775c57e8..823989f7 100644 --- a/hugolib/shortcode.go +++ b/hugolib/shortcode.go @@ -483,7 +483,7 @@ Loop: break Loop case tError: err := fmt.Errorf("%s:%d: %s", - p.BaseFileName(), (p.lineNumRawContentStart() + pt.lexer.lineNum() - 1), currItem) + p.FullFilePath(), (p.lineNumRawContentStart() + pt.lexer.lineNum() - 1), currItem) currShortcode.err = err return result.String(), shortCodes, err }