mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix error message when saving generated LOCAL_ROOT_URL config (#15880)
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user