summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go
index d5dae5badc..ee9ee4d951 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -48,6 +48,7 @@ import (
"github.com/go-gitea/gitea/routers/user"
)
+// CmdWeb represents the available web sub-command.
var CmdWeb = cli.Command{
Name: "web",
Usage: "Start Gogs web server",
@@ -60,6 +61,7 @@ and it takes care of all the other things for you`,
},
}
+// VerChecker is a listing of required dependency versions.
type VerChecker struct {
ImportPath string
Version func() string
@@ -99,7 +101,7 @@ func checkVersion() {
for _, c := range checkers {
if !version.Compare(c.Version(), c.Expected, ">=") {
log.Fatal(4, `Dependency outdated!
-Package '%s' current version (%s) is below requirement (%s),
+Package '%s' current version (%s) is below requirement (%s),
please use following command to update this package and recompile Gogs:
go get -u %[1]s`, c.ImportPath, c.Version(), c.Expected)
}