Hooks
- Throw exception instead of segfaulting for on-add hooks not adhering to the specs. More work needed.
This commit is contained in:
committed by
Paul Beckingham
parent
1e14097ea5
commit
ae9705561c
@@ -256,7 +256,7 @@ void Hooks::onAdd (std::vector <Task>& changes)
|
|||||||
if (_debug >= 1)
|
if (_debug >= 1)
|
||||||
context.debug ("Hooks: Calling " + *i);
|
context.debug ("Hooks: Calling " + *i);
|
||||||
|
|
||||||
std::string input = changes[0].composeJSON ();
|
std::string input = changes.at(0).composeJSON ();
|
||||||
if (_debug >= 2)
|
if (_debug >= 2)
|
||||||
context.debug ("Hook input: " + input);
|
context.debug ("Hook input: " + input);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user