mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 09:44:21 +01:00
chore: refactoring status updates
This commit is contained in:
3
main.go
3
main.go
@@ -3,11 +3,12 @@ package main
|
||||
import (
|
||||
"github.com/opencode-ai/opencode/cmd"
|
||||
"github.com/opencode-ai/opencode/internal/logging"
|
||||
"github.com/opencode-ai/opencode/internal/status"
|
||||
)
|
||||
|
||||
func main() {
|
||||
defer logging.RecoverPanic("main", func() {
|
||||
logging.ErrorPersist("Application terminated due to unhandled panic")
|
||||
status.Error("Application terminated due to unhandled panic")
|
||||
})
|
||||
|
||||
cmd.Execute()
|
||||
|
||||
Reference in New Issue
Block a user