aboutsummaryrefslogtreecommitdiff
path: root/confirm.go
diff options
context:
space:
mode:
Diffstat (limited to 'confirm.go')
-rw-r--r--confirm.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/confirm.go b/confirm.go
index a7d4748..31ce746 100644
--- a/confirm.go
+++ b/confirm.go
@@ -82,6 +82,9 @@ func (m confirmModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.viewport.Width = msg.Width - padding_h
m.viewport.Height = msg.Height - verticalMarginHeight - padding_v
}
+ case fatalErrorMsg:
+ fmt.Printf("encountered fatal error: %s\n", msg.Error())
+ return m, tea.Quit
}
// Handle keyboard and mouse events in the viewport