hugolib: Include full filepath on shortcode errors
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 21 Feb 2017 21:53:37 +0000 (22:53 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 21 Feb 2017 21:54:19 +0000 (22:54 +0100)
Fixes #3079

hugolib/shortcode.go

index 775c57e8cb5841a9ccef48cffe46a234f6358850..823989f7db1277696185c258dc15f36fa36a8e00 100644 (file)
@@ -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
                }