Skip to content

Commit

Permalink
modules: Print required Hugo version for incompatible modules
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang authored and bep committed Jan 28, 2024
1 parent 63e0a92 commit 60d954c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 60d954c

Please sign in to comment.