Add fatal error when port is already in use

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2026-05-26 22:44:31 +02:00
parent 2e61ffa125
commit 8683d17242
4 changed files with 30 additions and 12 deletions
+3
View File
@@ -55,6 +55,7 @@ type Model struct {
database *db.DB
logFile *os.File
pluginManager *plugins.Manager
fatalErr error
width int
height int
@@ -135,6 +136,8 @@ func New(broker *intercept.Broker, name, path string) Model {
return m
}
func (m Model) FatalErr() error { return m.fatalErr }
func (m Model) Init() tea.Cmd {
mgr := m.pluginManager
return tea.Batch(