[#7781] reverted autorecover panic handling for the cli commands
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
## v0.39.10 (WIP)
|
## 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).
|
- Minor UI improvements (added placeholder loader for the logs chart).
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+4
-4
@@ -186,21 +186,21 @@ func (pb *PocketBase) Execute() error {
|
|||||||
done := make(chan bool, 1)
|
done := make(chan bool, 1)
|
||||||
|
|
||||||
// listen for interrupt signal to gracefully shutdown the application
|
// listen for interrupt signal to gracefully shutdown the application
|
||||||
routine.FireAndForget(func() {
|
go func() {
|
||||||
sigch := make(chan os.Signal, 1)
|
sigch := make(chan os.Signal, 1)
|
||||||
signal.Notify(sigch, os.Interrupt, syscall.SIGTERM)
|
signal.Notify(sigch, os.Interrupt, syscall.SIGTERM)
|
||||||
<-sigch
|
<-sigch
|
||||||
|
|
||||||
done <- true
|
done <- true
|
||||||
})
|
}()
|
||||||
|
|
||||||
// execute the root command
|
// execute the root command
|
||||||
routine.FireAndForget(func() {
|
go func() {
|
||||||
// note: leave to the commands to decide whether to print their error
|
// note: leave to the commands to decide whether to print their error
|
||||||
pb.RootCmd.Execute()
|
pb.RootCmd.Execute()
|
||||||
|
|
||||||
done <- true
|
done <- true
|
||||||
})
|
}()
|
||||||
|
|
||||||
<-done
|
<-done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user