- Both ::initialize and ::run need to catch a 'throw (0)' from the hook system.
This commit is contained in:
Paul Beckingham 2014-09-14 16:33:10 -04:00
parent 8be6c589da
commit 90edba9113

View file

@ -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);