summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPatrick Kollitsch <[email protected]>2021-11-10 15:32:17 +0700
committerGitHub <[email protected]>2021-11-10 09:32:17 +0100
commit9369d13e59ffac262944477fad3dcd2742d66288 (patch)
tree5d44bdb0881ecb41159b3cce1fa9f694322ef291
parent805c24c32c9b1f118c5f3693bfe1176d4efe4d9c (diff)
downloadhugo-9369d13e59ffac262944477fad3dcd2742d66288.tar.gz
hugo-9369d13e59ffac262944477fad3dcd2742d66288.zip
modules: Improve error message
-rw-r--r--modules/client.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/client.go b/modules/client.go
index 4a45c97ff..fcb5957c3 100644
--- a/modules/client.go
+++ b/modules/client.go
@@ -627,14 +627,14 @@ func (c *Client) runGo(
if strings.Contains(stderr.String(), "invalid version: unknown revision") {
// See https://github.com/gohugoio/hugo/issues/6825
- c.logger.Println(`An unknown resivion most likely means that someone has deleted the remote ref (e.g. with a force push to GitHub).
+ c.logger.Println(`An unknown revision most likely means that someone has deleted the remote ref (e.g. with a force push to GitHub).
To resolve this, you need to manually edit your go.mod file and replace the version for the module in question with a valid ref.
-The easiest is to just enter a valid branch name ther, e.g. master, which would be the what you put in place of 'v0.5.1' in the example below.
+The easiest is to just enter a valid branch name there, e.g. master, which would be what you put in place of 'v0.5.1' in the example below.
require github.com/gohugoio/hugo-mod-jslibs/instantpage v0.5.1
-If you then run 'hugo mod graph' it should resolve itself to the most recent version (or commit if no semver versions).`)
+If you then run 'hugo mod graph' it should resolve itself to the most recent version (or commit if no semver versions are available).`)
}
_, ok := err.(*exec.ExitError)