mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Context
- Both ::initialize and ::run need to catch a 'throw (0)' from the hook system.
This commit is contained in:
parent
8be6c589da
commit
90edba9113
1 changed files with 6 additions and 0 deletions
|
@ -326,6 +326,12 @@ int Context::run ()
|
||||||
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