compile_forms: return errors consistently