You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/cmd
Allen Wild 2186a99c76 cmd/serv: actually exit after fatal errors (#7458)
Regression in 356854fc5f, where
a log.Fatal call was removed. log.Fatal calls os.Exit(1) as intended,
but without it the fail() function returns normally and execution
continues past the fatal error, causing a panic.

This is visible as a go panic log and stack trace returned to the SSH
client, which is not only ugly, it leaks server and build system
information.

Fix by removing the stray return statement so that the fail() function
always calls os.Exit(1).

Fixes: https://github.com/go-gitea/gitea/issues/7457
Signed-off-by: Allen Wild <allenwild93@gmail.com>
5 years ago
..
admin.go Add CLI commands to manage LDAP authentication source (#6681) 5 years ago
admin_auth_ldap.go Add CLI commands to manage LDAP authentication source (#6681) 5 years ago
admin_auth_ldap_test.go Add CLI commands to manage LDAP authentication source (#6681) 5 years ago
cert.go Add golangci (#6418) 5 years ago
cmd.go Disallow empty titles (#5785) 6 years ago
convert.go Add command to convert mysql database from utf8 to utf8mb4 (#7144) 5 years ago
dump.go Change verbose flag in dump command to avoid colliding with global version flag (#6822) 5 years ago
generate.go Rename LFS_JWT_SECRET to include OAUTH2 as well (#6826) 5 years ago
hook.go #6946 Run hooks on merge/edit and cope with protected branches (#6961) 5 years ago
keys.go Make CustomPath, CustomConf and AppWorkPath configurable at build (#6631) 5 years ago
migrate.go Make CustomPath, CustomConf and AppWorkPath configurable at build (#6631) 5 years ago
serv.go cmd/serv: actually exit after fatal errors (#7458) 5 years ago
web.go Use certmanager provided TLSConfig for LetsEncrypt (#7229) 5 years ago
web_graceful.go Better logging (#6038) (#6095) 5 years ago
web_windows.go fix windows build broken by #416 8 years ago