1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 00:54:28 +00:00

Fix error message when saving generated LOCAL_ROOT_URL config (#15880)

This commit is contained in:
Naohisa Murakami 2021-05-15 19:23:21 +09:00 committed by GitHub
parent b6b8b194ca
commit 9f19c2b8cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,7 +175,7 @@ func setPort(port string) error {
cfg.Section("server").Key("LOCAL_ROOT_URL").SetValue(defaultLocalURL) cfg.Section("server").Key("LOCAL_ROOT_URL").SetValue(defaultLocalURL)
if err := cfg.SaveTo(setting.CustomConf); err != nil { if err := cfg.SaveTo(setting.CustomConf); err != nil {
return fmt.Errorf("Error saving generated JWT Secret to custom config: %v", err) return fmt.Errorf("Error saving generated LOCAL_ROOT_URL to custom config: %v", err)
} }
} }
return nil return nil