mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Hooks
- Throw exception instead of segfaulting for on-add hooks not adhering to the specs. More work needed.
This commit is contained in:
parent
1e14097ea5
commit
ae9705561c
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ void Hooks::onAdd (std::vector <Task>& changes)
|
|||
if (_debug >= 1)
|
||||
context.debug ("Hooks: Calling " + *i);
|
||||
|
||||
std::string input = changes[0].composeJSON ();
|
||||
std::string input = changes.at(0).composeJSON ();
|
||||
if (_debug >= 2)
|
||||
context.debug ("Hook input: " + input);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue