From 4419e8536b0f8f02e8951abc48e1988400a372e1 Mon Sep 17 00:00:00 2001 From: William Morgan Date: Sun, 24 Feb 2008 11:45:06 -0800 Subject: [PATCH] minor bugfix: protect call to BufferManager#flash on hook error --- lib/sup/hook.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sup/hook.rb b/lib/sup/hook.rb index 98fcf57..74ecfab 100644 --- 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 -- 2.45.2