Consolidate error reporting in lit.cfg