hugolib: Include full filepath on shortcode errors

Fixes #3079
This commit is contained in:
Bjørn Erik Pedersen 2017-02-21 22:53:37 +01:00
parent 87acf292e5
commit 6278393540

View 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
}