Skip to content

Commit

Permalink
chore: use original exit error
Browse files Browse the repository at this point in the history
  • Loading branch information
Broderick-Westrope committed Dec 21, 2024
1 parent 16f5641 commit 96aa807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/tui/starter/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (m *Model) Init() tea.Cmd {
func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
switch msg := msg.(type) {
case tui.FatalErrorMsg:
m.ExitError = errors.New(msg.Error())
m.ExitError = msg.(error)
return m, tea.Quit

case tea.KeyMsg:
Expand Down

0 comments on commit 96aa807

Please sign in to comment.