By using an extern error handler in the script engine, we can mock that handler and make sure something that should fail actually does, instead of having to parse log messages.