Skip to content

Commit

Permalink
Fix exception message in automapping in ToCollection (#1423)
Browse files Browse the repository at this point in the history
  • Loading branch information
JanKallman authored Apr 19, 2024
1 parent f49b52a commit 795102c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EPPlus/Export/ToCollection/ToCollectionRow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public void Automap<T>(T item)
{
if (_failureStrategy == ToCollectionConversionFailureStrategy.Exception)
{
var dtcExeption = new EPPlusDataTypeConvertionException($"Can not convert item {_cellValues[m.Index]._value} to datatype {m.PropertyInfo.DeclaringType}", ex);
var dtcExeption = new EPPlusDataTypeConvertionException($"Can not convert item {_cellValues[m.Index]._value} to datatype {m.PropertyInfo.PropertyType}", ex);
throw dtcExeption;
}
else
Expand Down

0 comments on commit 795102c

Please sign in to comment.