hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 62783935401f2d68ef1a0057bf41c7d2e9256dc4
parent 87acf292e5c4821311357e06d5020d24c11ea8ca
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Tue, 21 Feb 2017 22:53:37 +0100

hugolib: Include full filepath on shortcode errors

Fixes #3079

Diffstat:
Mhugolib/shortcode.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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
 		}