aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-12-20 09:06:38 +0100
committerBjørn Erik Pedersen <[email protected]>2022-12-20 09:06:38 +0100
commiteda1e720cd2434f97d7d931a7ff55447375e8d9a (patch)
tree7a34e422e94561d08d74ba40642873cd0b48d66a
parent330fa8941152108327504b511c563dacfc3f4c75 (diff)
downloadhugo-eda1e720cd2434f97d7d931a7ff55447375e8d9a.tar.gz
hugo-eda1e720cd2434f97d7d931a7ff55447375e8d9a.zip
modules: Improve "module workspace" not found error
-rw-r--r--modules/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/config.go b/modules/config.go
index c08d2a4ab..9d516e841 100644
--- a/modules/config.go
+++ b/modules/config.go
@@ -263,7 +263,7 @@ func decodeConfig(cfg config.Provider, pathReplacements map[string]string) (Conf
c.Workspace = filepath.Join(workingDir, c.Workspace)
}
if _, err := os.Stat(c.Workspace); err != nil {
- return c, fmt.Errorf("module workspace %q does not exist", c.Workspace)
+ return c, fmt.Errorf("module workspace %q does not exist. Check your module.workspace setting (or HUGO_MODULE_WORKSPACE env var).", c.Workspace)
}
}
}