aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrazonyang <[email protected]>2023-12-30 21:28:35 +0800
committerBjørn Erik Pedersen <[email protected]>2024-01-28 15:23:21 +0100
commit60d954c7854fbbe59d5f8cb7e8428e01c3763288 (patch)
treefb1e796dabc00f8b17bdddf6a1549038f415645b
parent63e0a92894237d011439ed56cd993651c7603205 (diff)
downloadhugo-60d954c7854fbbe59d5f8cb7e8428e01c3763288.tar.gz
hugo-60d954c7854fbbe59d5f8cb7e8428e01c3763288.zip
modules: Print required Hugo version for incompatible modules
-rw-r--r--modules/collect.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/collect.go b/modules/collect.go
index a4066a46c..e7d5dbe29 100644
--- a/modules/collect.go
+++ b/modules/collect.go
@@ -126,7 +126,7 @@ func (m ModulesConfig) HasConfigFile() bool {
func (m *ModulesConfig) setActiveMods(logger loggers.Logger) error {
for _, mod := range m.AllModules {
if !mod.Config().HugoVersion.IsValid() {
- logger.Warnf(`Module %q is not compatible with this Hugo version; run "hugo mod graph" for more information.`, mod.Path())
+ logger.Warnf(`Module %q is not compatible with this Hugo version: %s; run "hugo mod graph" for more information.`, mod.Path(), mod.Config().HugoVersion)
}
}