Use error_code in Module::materializeAll.