mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +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:
@@ -113,9 +113,9 @@ func (c *Chain) Apply(to io.Writer, from io.Reader) error {
|
||||
filename = tempfile.Name()
|
||||
defer tempfile.Close()
|
||||
_, _ = io.Copy(tempfile, fb.from)
|
||||
return herrors.NewFileErrorFromFile(err, filename, filename, hugofs.Os, nil)
|
||||
return herrors.NewFileErrorFromFile(err, filename, hugofs.Os, nil)
|
||||
}
|
||||
return herrors.NewFileError(filename, err).UpdateContent(fb.from, nil)
|
||||
return herrors.NewFileError(err, filename).UpdateContent(fb.from, nil)
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user