admin,templates,core: Minor enhancements and error handling (#3607)

* fix 2 possible bugs

* handle unhandled errors
This commit is contained in:
Bart
2020-07-31 22:54:18 +00:00
committed by GitHub
parent 514eef33fe
commit af5c148ed1
4 changed files with 14 additions and 5 deletions

View File

@ -471,7 +471,7 @@ func stopAndCleanup() error {
}
certmagic.CleanUpOwnLocks()
if pidfile != "" {
os.Remove(pidfile)
return os.Remove(pidfile)
}
return nil
}