Browse Source

Fix catalogTypeName -> catalogBrandName in exception message

pull/1860/head
KurnakovMaksim 3 years ago
parent
commit
073f7a7e60
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Services/Catalog/Catalog.API/Infrastructure/CatalogContextSeed.cs

+ 1
- 1
src/Services/Catalog/Catalog.API/Infrastructure/CatalogContextSeed.cs View File

@ -203,7 +203,7 @@ public class CatalogContextSeed
string catalogBrandName = column[Array.IndexOf(headers, "catalogbrandname")].Trim('"').Trim();
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();


Loading…
Cancel
Save