[import] Improve assertion error message