From 90edba9113b426f8ecfedcf212bfe8f3dd1e282c Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 14 Sep 2014 16:33:10 -0400 Subject: [PATCH] Context - Both ::initialize and ::run need to catch a 'throw (0)' from the hook system. --- src/Context.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Context.cpp b/src/Context.cpp index 6c3e15518..95b3034f2 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -326,6 +326,12 @@ int Context::run () rc = 2; } + catch (int) + { + // Hooks can terminate processing by throwing integers. + rc = 4; + } + catch (...) { error (STRING_UNKNOWN_ERROR);