aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-07-17 19:15:48 +0200
committerBjørn Erik Pedersen <[email protected]>2023-07-17 20:42:32 +0200
commit387c5f60f97141d638327f84ee426fb44f6c554e (patch)
treedd9b40c4f33532183d2e84b8ea09e7dc72cb1b4a /config
parentc406fd3a0e0efa17f69095ca6317ba1036fc8964 (diff)
downloadhugo-387c5f60f97141d638327f84ee426fb44f6c554e.tar.gz
hugo-387c5f60f97141d638327f84ee426fb44f6c554e.zip
Improve error messages for PostCSS etc.
Fixes #9730
Diffstat (limited to 'config')
-rw-r--r--config/commonConfig.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/commonConfig.go b/config/commonConfig.go
index 2c6497b34..5cf526708 100644
--- a/config/commonConfig.go
+++ b/config/commonConfig.go
@@ -148,7 +148,7 @@ func (b BuildConfig) UseResourceCache(err error) bool {
}
if b.UseResourceCacheWhen == "fallback" {
- return err == herrors.ErrFeatureNotAvailable
+ return herrors.IsFeatureNotAvailableError(err)
}
return true