From: William Morgan Date: Sun, 24 Feb 2008 19:45:06 +0000 (-0800) Subject: minor bugfix: protect call to BufferManager#flash on hook error X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=4419e8536b0f8f02e8951abc48e1988400a372e1;p=sup minor bugfix: protect call to BufferManager#flash on hook error --- 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