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