Better error reporting for the translation phase.