aboutsummaryrefslogtreecommitdiff
path: root/ui/view-main.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/view-main.go')
-rw-r--r--ui/view-main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/view-main.go b/ui/view-main.go
index 8ec482e..c2cd30f 100644
--- a/ui/view-main.go
+++ b/ui/view-main.go
@@ -148,7 +148,7 @@ func (view *MainView) InputDone(key tcell.Key) {
}
func (view *MainView) HandleCommand(room, command string, args []string) {
- view.gmx.Recover()
+ defer view.gmx.Recover()
debug.Print("Handling command", command, args)
switch command {
case "/quit":
@@ -156,6 +156,8 @@ func (view *MainView) HandleCommand(room, command string, args []string) {
case "/clearcache":
view.config.Session.Clear()
view.gmx.Stop()
+ case "/panic":
+ panic("This is a test panic.")
case "/part":
fallthrough
case "/leave":