- Throw exception instead of segfaulting for on-add hooks not adhering to the specs. More work needed.
This commit is contained in:
Wilhelm Schuermann 2014-10-14 17:31:04 +02:00 committed by Paul Beckingham
parent 1e14097ea5
commit ae9705561c

View file

@ -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);