diff --git a/src/Context.cpp b/src/Context.cpp index 7285a8e8a..6cc592bea 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -232,6 +232,12 @@ int Context::initialize (int argc, const char** argv) rc = 2; } + catch (int) + { + // Hooks can terminate processing by throwing integers. + rc = 4; + } + catch (...) { error (STRING_UNKNOWN_ERROR);