Unit Tests

- Corrected expected output from the on-modify-misbehave4 test hook script.
- Moved JSON syntax error details to debug output.
This commit is contained in:
Paul Beckingham 2015-02-14 17:50:28 -05:00
parent f454eecafb
commit adac566665
2 changed files with 3 additions and 2 deletions

View file

@ -441,7 +441,8 @@ void Hooks::assertValidJSON (const std::vector <std::string>& input) const
catch (const std::string& e)
{
context.error ("Hook Error: JSON syntax error in: " + *i);
context.error ("Hook Error: JSON " + e);
if (_debug)
context.error ("Hook Error: JSON " + e);
throw 0;
}