diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-05-15 11:40:34 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-05-15 20:25:25 +0200 |
commit | fc9f315d86e1fe51c3d1eec3b60680113b2e3aa6 (patch) | |
tree | 69e8ffc4d84e8f02e0e6f098c27cda9dd3bcc544 /langs/i18n | |
parent | 4b189d8fd93d3fa326b31d451d5594c917e6c714 (diff) | |
download | hugo-fc9f315d86e1fe51c3d1eec3b60680113b2e3aa6.tar.gz hugo-fc9f315d86e1fe51c3d1eec3b60680113b2e3aa6.zip |
Improve SASS errors
Fixes #9897
Diffstat (limited to 'langs/i18n')
-rw-r--r-- | langs/i18n/translationProvider.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/langs/i18n/translationProvider.go b/langs/i18n/translationProvider.go index fbeea71d4..d9d334567 100644 --- a/langs/i18n/translationProvider.go +++ b/langs/i18n/translationProvider.go @@ -138,6 +138,6 @@ func errWithFileContext(inerr error, r source.File) error { } defer f.Close() - return herrors.NewFileError(inerr, realFilename).UpdateContent(f, nil) + return herrors.NewFileErrorFromName(inerr, realFilename).UpdateContent(f, nil) } |