@@ -40,8 +40,8 @@ class Configurable extends \Magento\CatalogImportExport\Model\Import\Product\Typ
40
40
* @var array
41
41
*/
42
42
protected $ _messageTemplates = [
43
- self ::ERROR_ATTRIBUTE_CODE_IS_NOT_SUPER => 'Attribute with this code is not super ' ,
44
- self ::ERROR_INVALID_OPTION_VALUE => 'Invalid option value ' ,
43
+ self ::ERROR_ATTRIBUTE_CODE_IS_NOT_SUPER => 'Attribute with code "%s" is not super ' ,
44
+ self ::ERROR_INVALID_OPTION_VALUE => 'Invalid option value for attribute "%s" ' ,
45
45
self ::ERROR_INVALID_WEBSITE => 'Invalid website code for super attribute ' ,
46
46
self ::ERROR_DUPLICATED_VARIATIONS => 'SKU %s contains duplicated variations ' ,
47
47
];
@@ -291,12 +291,12 @@ protected function _isParticularAttributesValid(array $rowData, $rowNum)
291
291
292
292
if (!$ this ->_isAttributeSuper ($ superAttrCode )) {
293
293
// check attribute superity
294
- $ this ->_entityModel ->addRowError (self ::ERROR_ATTRIBUTE_CODE_IS_NOT_SUPER , $ rowNum );
294
+ $ this ->_entityModel ->addRowError (self ::ERROR_ATTRIBUTE_CODE_IS_NOT_SUPER , $ rowNum, $ superAttrCode );
295
295
return false ;
296
296
} elseif (isset ($ rowData ['_super_attribute_option ' ]) && strlen ($ rowData ['_super_attribute_option ' ])) {
297
297
$ optionKey = strtolower ($ rowData ['_super_attribute_option ' ]);
298
298
if (!isset ($ this ->_superAttributes [$ superAttrCode ]['options ' ][$ optionKey ])) {
299
- $ this ->_entityModel ->addRowError (self ::ERROR_INVALID_OPTION_VALUE , $ rowNum );
299
+ $ this ->_entityModel ->addRowError (self ::ERROR_INVALID_OPTION_VALUE , $ rowNum, $ superAttrCode );
300
300
return false ;
301
301
}
302
302
}
0 commit comments