aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/config.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-05-14 15:51:04 +0200
committerBjørn Erik Pedersen <[email protected]>2022-05-15 20:25:25 +0200
commit4b189d8fd93d3fa326b31d451d5594c917e6c714 (patch)
treec3515876c474caab2df6d0a34291bcc3ca8e75df /hugolib/config.go
parentc2fa0a33209da7cfd9a09f8fc528415578a9edf8 (diff)
downloadhugo-4b189d8fd93d3fa326b31d451d5594c917e6c714.tar.gz
hugo-4b189d8fd93d3fa326b31d451d5594c917e6c714.zip
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 'hugolib/config.go')
-rw-r--r--hugolib/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/config.go b/hugolib/config.go
index 1e7cf6b06..e63d6da4e 100644
--- a/hugolib/config.go
+++ b/hugolib/config.go
@@ -511,5 +511,5 @@ func (configLoader) loadSiteConfig(cfg config.Provider) (scfg SiteConfig, err er
}
func (l configLoader) wrapFileError(err error, filename string) error {
- return herrors.NewFileErrorFromFile(err, filename, filename, l.Fs, nil)
+ return herrors.NewFileErrorFromFile(err, filename, l.Fs, nil)
}