summaryrefslogtreecommitdiffhomepage
path: root/commands/commandeer.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-08-14 21:21:39 +0200
committerBjørn Erik Pedersen <[email protected]>2018-08-14 21:21:39 +0200
commite5052f4e09b6df590cddf2f8bc2c834fd3af3082 (patch)
tree90e78f8bb54a4c7da217c639369afbc4486c54b6 /commands/commandeer.go
parentc81fbf4625ae7cc7dd3a7a526331ddfdf5237cc6 (diff)
downloadhugo-e5052f4e09b6df590cddf2f8bc2c834fd3af3082.tar.gz
hugo-e5052f4e09b6df590cddf2f8bc2c834fd3af3082.zip
commands: Include theme name in version mismatch error
Fixes #5044
Diffstat (limited to 'commands/commandeer.go')
-rw-r--r--commands/commandeer.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/commands/commandeer.go b/commands/commandeer.go
index 3ff0b6426..0a024f047 100644
--- a/commands/commandeer.go
+++ b/commands/commandeer.go
@@ -17,6 +17,7 @@ import (
"os"
"path/filepath"
"regexp"
+ "strings"
"sync"
"time"
@@ -324,11 +325,12 @@ func (c *commandeer) loadConfig(mustHaveConfigFile, running bool) error {
}
}
- themeVersionMismatch, minVersion := c.isThemeVsHugoVersionMismatch(sourceFs)
+ dir, themeVersionMismatch, minVersion := c.isThemeVsHugoVersionMismatch(sourceFs)
if themeVersionMismatch {
- cfg.Logger.ERROR.Printf("Current theme does not support Hugo version %s. Minimum version required is %s\n",
- helpers.CurrentHugoVersion.ReleaseVersion(), minVersion)
+ name := filepath.Base(dir)
+ cfg.Logger.ERROR.Printf("%s theme does not support Hugo version %s. Minimum version required is %s\n",
+ strings.ToUpper(name), helpers.CurrentHugoVersion.ReleaseVersion(), minVersion)
}
return nil