Fix error message when PostCSS config file is not found

Fixes #9927
This commit is contained in:
Bjørn Erik Pedersen 2022-05-25 21:21:28 +02:00
parent 8ca7052528
commit 805b21555e
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -170,7 +170,7 @@ func (t *postcssTransformation) Transform(ctx *resources.ResourceTransformationC
configFile = t.rs.BaseFs.ResolveJSConfigFile(configFile) configFile = t.rs.BaseFs.ResolveJSConfigFile(configFile)
if configFile == "" && t.options.Config != "" { if configFile == "" && t.options.Config != "" {
// Only fail if the user specified config file is not found. // Only fail if the user specified config file is not found.
return fmt.Errorf("postcss config %q not found:", configFile) return fmt.Errorf("postcss config %q not found:", t.options.Config)
} }
} }