Added more descriptive mapping and localization support on error.