summaryrefslogtreecommitdiff
path: root/cmd/dserver/main.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-08 09:36:24 +0200
committerPaul Buetow <paul@buetow.org>2026-03-08 09:36:24 +0200
commitd5238b199fe592efd6ed9a2c54e4fc475221ff71 (patch)
treed65ce1e4e5cddaa44c41f50f7454759f4172563f /cmd/dserver/main.go
parent77b41ce17090008470c261d1f185da43f76ec0c2 (diff)
task: replace panic-based CLI/runtime exits (task 380)
Diffstat (limited to 'cmd/dserver/main.go')
-rw-r--r--cmd/dserver/main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/dserver/main.go b/cmd/dserver/main.go
index 4ea3e2b..7c13b29 100644
--- a/cmd/dserver/main.go
+++ b/cmd/dserver/main.go
@@ -73,7 +73,9 @@ func main() {
if pprof != "" {
dlog.Client.Info("Starting PProf", pprof)
go func() {
- panic(http.ListenAndServe(pprof, nil))
+ if err := http.ListenAndServe(pprof, nil); err != nil {
+ dlog.Client.Error("PProf server exited", err)
+ }
}()
}