feat: better error handling for sys kill signals

This commit is contained in:
Jagadam Dinesh Reddy authored and GitHub committed 2025-07-22 08:25:21 +02:00
1 parent 21ad653b7e
commit 1582b8b2cd
28 files changed
+876 -361

No files matched your search

+6 -1
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))
}
}