mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Context
- Added special integer catch handler for hook terminations.
This commit is contained in:
parent
d30fb54a62
commit
ad1dc807ea
1 changed files with 6 additions and 0 deletions
|
@ -232,6 +232,12 @@ int Context::initialize (int argc, const char** argv)
|
||||||
rc = 2;
|
rc = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
catch (int)
|
||||||
|
{
|
||||||
|
// Hooks can terminate processing by throwing integers.
|
||||||
|
rc = 4;
|
||||||
|
}
|
||||||
|
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
error (STRING_UNKNOWN_ERROR);
|
error (STRING_UNKNOWN_ERROR);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue