[#7781] reverted autorecover panic handling for the cli commands

This commit is contained in:
Gani Georgiev
2026-07-29 18:53:04 +03:00
parent 6b00152847
commit e83e911b2f
2 changed files with 6 additions and 4 deletions
+2
View File
@@ -1,5 +1,7 @@
## v0.39.10 (WIP)
- Reverted the auto panic recover handling for the cli commands to allow a panic to force exit with non-zero code ([#7781](https://github.com/pocketbase/pocketbase/issues/7781)).
- Minor UI improvements (added placeholder loader for the logs chart).
+4 -4
View File
@@ -186,21 +186,21 @@ func (pb *PocketBase) Execute() error {
done := make(chan bool, 1)
// listen for interrupt signal to gracefully shutdown the application
routine.FireAndForget(func() {
go func() {
sigch := make(chan os.Signal, 1)
signal.Notify(sigch, os.Interrupt, syscall.SIGTERM)
<-sigch
done <- true
})
}()
// execute the root command
routine.FireAndForget(func() {
go func() {
// note: leave to the commands to decide whether to print their error
pb.RootCmd.Execute()
done <- true
})
}()
<-done