summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorivar <i@oiee.no>2026-04-04 17:06:03 +0200
committerivar <i@oiee.no>2026-04-04 17:06:03 +0200
commit18be2a543038ffe59d0bfcfce56a51418d543d6a (patch)
treecd75c40a8a33a2155b69c92443761005d9b42fe9 /cmd
parent87deaec8c519ee477439922f1cbecb8c90cbe5af (diff)
downloadnebbet.no-18be2a543038ffe59d0bfcfce56a51418d543d6a.tar.xz
nebbet.no-18be2a543038ffe59d0bfcfce56a51418d543d6a.zip
fix: check vips.Startup error and tidy go.mod indirect annotation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/nebbet/main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/nebbet/main.go b/cmd/nebbet/main.go
index f74d0d2..520065c 100644
--- a/cmd/nebbet/main.go
+++ b/cmd/nebbet/main.go
@@ -45,7 +45,10 @@ func cmdServe(args []string) {
port := fs.String("port", "8080", "port to listen on")
_ = fs.Parse(args)
- vips.Startup(nil)
+ if err := vips.Startup(nil); err != nil {
+ fmt.Fprintln(os.Stderr, "govips startup:", err)
+ os.Exit(1)
+ }
defer vips.Shutdown()
meta, search := mustOpenDBs()