mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
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
This commit is contained in:
@@ -53,7 +53,7 @@ func (t templateInfo) resolveType() templateType {
|
||||
|
||||
func (info templateInfo) errWithFileContext(what string, err error) error {
|
||||
err = fmt.Errorf(what+": %w", err)
|
||||
fe := herrors.NewFileError(info.realFilename, err)
|
||||
fe := herrors.NewFileError(err, info.realFilename)
|
||||
f, err := info.fs.Open(info.filename)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user