mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-11 20:03:58 +02:00
modules: Improve "module workspace" not found error
This commit is contained in:
@@ -263,7 +263,7 @@ func decodeConfig(cfg config.Provider, pathReplacements map[string]string) (Conf
|
|||||||
c.Workspace = filepath.Join(workingDir, c.Workspace)
|
c.Workspace = filepath.Join(workingDir, c.Workspace)
|
||||||
}
|
}
|
||||||
if _, err := os.Stat(c.Workspace); err != nil {
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user