improve mappings compiler pass exception when configuration is bad