aboutsummaryrefslogtreecommitdiffhomepage
path: root/langs/i18n
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-05-15 11:40:34 +0200
committerBjørn Erik Pedersen <[email protected]>2022-05-15 20:25:25 +0200
commitfc9f315d86e1fe51c3d1eec3b60680113b2e3aa6 (patch)
tree69e8ffc4d84e8f02e0e6f098c27cda9dd3bcc544 /langs/i18n
parent4b189d8fd93d3fa326b31d451d5594c917e6c714 (diff)
downloadhugo-fc9f315d86e1fe51c3d1eec3b60680113b2e3aa6.tar.gz
hugo-fc9f315d86e1fe51c3d1eec3b60680113b2e3aa6.zip
Improve SASS errors
Fixes #9897
Diffstat (limited to 'langs/i18n')
-rw-r--r--langs/i18n/translationProvider.go2
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)
}