aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-10 13:04:15 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-10 13:04:15 +0800
commit80b1e2e54224720c7b5f798c8c0a6c7ba4545fa5 (patch)
tree80b11c951bc02daa4c6d02cf78e02e118c9fce88 /main.go
parentindex: List categories (diff)
downloadforge-80b1e2e54224720c7b5f798c8c0a6c7ba4545fa5.tar.gz
forge-80b1e2e54224720c7b5f798c8c0a6c7ba4545fa5.tar.zst
forge-80b1e2e54224720c7b5f798c8c0a6c7ba4545fa5.zip
*.go: Linting
Diffstat (limited to '')
-rw-r--r--main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.go b/main.go
index 3552cba..8f9482d 100644
--- a/main.go
+++ b/main.go
@@ -40,5 +40,8 @@ func main() {
clog.Fatal(1, "Listening: "+err.Error())
}
- http.Serve(listener, nil)
+ err = http.Serve(listener, nil)
+ if err != nil {
+ clog.Fatal(1, "Serving: "+err.Error())
+ }
}