Added support for testing for existence of errors and printing errors.
- Added hook to intercept ANTLR errors.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>