Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/langs
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-05-14 16:51:04 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-05-15 21:25:25 +0300
commit4b189d8fd93d3fa326b31d451d5594c917e6c714 (patch)
treec3515876c474caab2df6d0a34291bcc3ca8e75df /langs
parentc2fa0a33209da7cfd9a09f8fc528415578a9edf8 (diff)
postcss: Fix import error handling
Note that we will now fail if `inlineImports` is enabled and we cannot resolve an import. You can work around this by either: * Use url imports or imports with media queries. * Set `skipInlineImportsNotFound=true` in the options Also get the argument order in the different NewFileError* funcs in line. Fixes #9895
Diffstat (limited to 'langs')
-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 4c0934bad..fbeea71d4 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(realFilename, inerr).UpdateContent(f, nil)
+ return herrors.NewFileError(inerr, realFilename).UpdateContent(f, nil)
}