mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
modules: Improve "module workspace" not found error
This commit is contained in:
parent
330fa89411
commit
eda1e720cd
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue