mirror of https://github.com/go-gitea/gitea
cmd/serv: actually exit after fatal errors (#7460)
Regression inpull/7466/head356854fc5f
, 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). Backport:2186a99c76
Fixes: https://github.com/go-gitea/gitea/issues/7457 Signed-off-by: Allen Wild <allenwild93@gmail.com>
parent
ba19a35b6b
commit
ee1a8d7b41
Loading…
Reference in new issue