sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 4419e8536b0f8f02e8951abc48e1988400a372e1
parent d371c081ebe557cbe67b2428f75c9471a480e8ef
Author: William Morgan <wmorgan-sup@masanjin.net>
Date:   Sun, 24 Feb 2008 11:45:06 -0800

minor bugfix: protect call to BufferManager#flash on hook error

Diffstat:
M lib/sup/hook.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/hook.rb b/lib/sup/hook.rb
@@ -86,7 +86,7 @@ class HookManager
       log "error running hook: #{e.message}"
       log e.backtrace.join("\n")
       @hooks[name] = nil # disable it
-      BufferManager.flash "Error running hook: #{e.message}"
+      BufferManager.flash "Error running hook: #{e.message}" if BufferManager.instantiated?
     end
     context.__cleanup
     result