More descriptive error when materials.cfg fails.