Fix catalogTypeName -> catalogBrandName in exception message

This commit is contained in:
KurnakovMaksim 2022-02-19 21:13:55 +09:00
parent aebfc8e5ac
commit 073f7a7e60

View File

@ -203,7 +203,7 @@ public class CatalogContextSeed
string catalogBrandName = column[Array.IndexOf(headers, "catalogbrandname")].Trim('"').Trim(); string catalogBrandName = column[Array.IndexOf(headers, "catalogbrandname")].Trim('"').Trim();
if (!catalogBrandIdLookup.ContainsKey(catalogBrandName)) if (!catalogBrandIdLookup.ContainsKey(catalogBrandName))
{ {
throw new Exception($"type={catalogTypeName} does not exist in catalogTypes"); throw new Exception($"type={catalogBrandName} does not exist in catalogTypes");
} }
string priceString = column[Array.IndexOf(headers, "price")].Trim('"').Trim(); string priceString = column[Array.IndexOf(headers, "price")].Trim('"').Trim();