diff options
| author | ivar <i@oiee.no> | 2026-04-04 17:06:03 +0200 |
|---|---|---|
| committer | ivar <i@oiee.no> | 2026-04-04 17:06:03 +0200 |
| commit | 18be2a543038ffe59d0bfcfce56a51418d543d6a (patch) | |
| tree | cd75c40a8a33a2155b69c92443761005d9b42fe9 /cmd/nebbet/main.go | |
| parent | 87deaec8c519ee477439922f1cbecb8c90cbe5af (diff) | |
| download | nebbet.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/nebbet/main.go')
| -rw-r--r-- | cmd/nebbet/main.go | 5 |
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() |
