commit ae6ea277be4c1e77b90e3152c870698c2e827043
parent e71df12a4a504f0ff4c147f29486da737d936fd1
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Wed, 7 Nov 2007 20:13:00 +0000
when a hook throws an exception, disable it rather than re-calling it over and over
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@676 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/sup/hook.rb b/lib/sup/hook.rb
@@ -86,6 +86,7 @@ class HookManager
log "error running hook: #{e.message}"
log e.backtrace.join("\n")
BufferManager.flash "Error running hook: #{e.message}"
+ @hooks[name] = nil # disable it
end
context.__cleanup
result