summaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.go b/main.go
index 4bc8a22f0..2b0761c69 100644
--- a/main.go
+++ b/main.go
@@ -1,9 +1,14 @@
package main
import (
- "github.com/kujtimiihoxha/termai/cmd"
+ "github.com/kujtimiihoxha/opencode/cmd"
+ "github.com/kujtimiihoxha/opencode/internal/logging"
)
func main() {
+ defer logging.RecoverPanic("main", func() {
+ logging.ErrorPersist("Application terminated due to unhandled panic")
+ })
+
cmd.Execute()
}