Provide meaningful exception when dotted import fails