diff options
author | singuliere <35190819+singuliere@users.noreply.github.com> | 2022-05-31 00:47:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-31 00:47:55 +0200 |
commit | fdc784dbf482a790baaa1dd1f9dde5a8b8e4dadb (patch) | |
tree | 59e754773cc004e80a63c0ddcd242d0ba60ec58d /cmd | |
parent | fe4c846ccb70868f1b1f167e16d488080bcb1b51 (diff) | |
download | gitea-fdc784dbf482a790baaa1dd1f9dde5a8b8e4dadb.tar.gz gitea-fdc784dbf482a790baaa1dd1f9dde5a8b8e4dadb.zip |
docs: update the ROOT documentation and error messages (#19832)
* docs: update the ROOT documentation and error messages
* The documentation now reflects what happens in the
setting/repository.go::newRepository function:
filepath.Join(AppWorkPath, RepoRootPath) was missing.
* The error message displayed when RepoRootPath is not found now
displays the value of RepoRootPath. Given the complexity of the
construction of this value, only referring to it in the abstract
is likely to be misleading to the Gitea admin trying to interpret
the message.
Co-authored-by: delvh <dev.lh@web.de>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/serv.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/serv.go b/cmd/serv.go index 340f591dce..adfbc6024c 100644 --- a/cmd/serv.go +++ b/cmd/serv.go @@ -302,7 +302,7 @@ func runServ(c *cli.Context) error { if _, err := os.Stat(setting.RepoRootPath); err != nil { if os.IsNotExist(err) { return fail("Incorrect configuration.", - "Directory `[repository]` `ROOT` was not found, please check if $GITEA_WORK_DIR is passed to the SSH connection or make `[repository]` `ROOT` an absolute value.") + "Directory `[repository]` `ROOT` %s was not found, please check if $GITEA_WORK_DIR is passed to the SSH connection or make `[repository]` `ROOT` an absolute value.", setting.RepoRootPath) } } |