added non-zero exit status support for returned command errors

This commit is contained in:
Gani Georgiev committed 2026-08-01 15:05:40 +03:00
1 parent fd25a8ae32
commit 200c19b26f
2 files changed
+25 -36

No files matched your search

+4 -1
View File
@@ -1,4 +1,7 @@
## v0.39.11 (WIP)
## v0.40.0 (WIP)
- Propagate console command errors and recovered panics to `app.Start()` so that the program can exit with non-zero code while still ensuring that `app.OnTerminate` hook (responsible for the app graceful shutdown handling) was triggered.
_⚠️ Note that this could be a slight breaking change in case you are chaining PocketBase commands and relied on the previous `0` exit status for `Command.RunE` returned errors._
- Fixed "API preview" examples ([#7782](https://github.com/pocketbase/pocketbase/issues/7782)).