From 62783935401f2d68ef1a0057bf41c7d2e9256dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 21 Feb 2017 22:53:37 +0100 Subject: [PATCH] hugolib: Include full filepath on shortcode errors Fixes #3079 --- hugolib/shortcode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugolib/shortcode.go b/hugolib/shortcode.go index 775c57e8c..823989f7d 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 }