aboutsummaryrefslogtreecommitdiffhomepage
path: root/caddy.go
diff options
context:
space:
mode:
authorBart <[email protected]>2020-07-31 22:54:18 +0000
committerGitHub <[email protected]>2020-07-31 16:54:18 -0600
commitaf5c148ed1d8e405978b71e7efe15d0a829cab50 (patch)
tree688bd785a2263e66fb93797abc7a376a3c02726d /caddy.go
parent514eef33fe6ea4e52438e62f73c8f3c0aadd45db (diff)
downloadcaddy-af5c148ed1d8e405978b71e7efe15d0a829cab50.tar.gz
caddy-af5c148ed1d8e405978b71e7efe15d0a829cab50.zip
admin,templates,core: Minor enhancements and error handling (#3607)
* fix 2 possible bugs * handle unhandled errors
Diffstat (limited to 'caddy.go')
-rw-r--r--caddy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/caddy.go b/caddy.go
index 009264102..000cd6f1a 100644
--- a/caddy.go
+++ b/caddy.go
@@ -471,7 +471,7 @@ func stopAndCleanup() error {
}
certmagic.CleanUpOwnLocks()
if pidfile != "" {
- os.Remove(pidfile)
+ return os.Remove(pidfile)
}
return nil
}