feat: better error handling for sys kill signals

This commit is contained in:
Jagadam Dinesh Reddy 2025-07-22 11:55:21 +05:30 committed by GitHub
parent 21ad653b7e
commit 1582b8b2cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 876 additions and 361 deletions

View file

@ -1,9 +1,14 @@
package main
import (
"os"
"github.com/filebrowser/filebrowser/v2/cmd"
"github.com/filebrowser/filebrowser/v2/errors"
)
func main() {
cmd.Execute()
if err := cmd.Execute(); err != nil {
os.Exit(errors.GetExitCode(err))
}
}