hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 805b21555e283c28a669943a36af6d6d699e9198
parent 8ca70525281d519f0e7d24e64248f055c4de07e6
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Wed, 25 May 2022 21:21:28 +0200

Fix error message when PostCSS config file is not found

Fixes #9927

Diffstat:
Mresources/resource_transformers/postcss/postcss.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/resources/resource_transformers/postcss/postcss.go b/resources/resource_transformers/postcss/postcss.go
@@ -170,7 +170,7 @@ func (t *postcssTransformation) Transform(ctx *resources.ResourceTransformationC
 		configFile = t.rs.BaseFs.ResolveJSConfigFile(configFile)
 		if configFile == "" && t.options.Config != "" {
 			// 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)
 		}
 	}