Skip to content

Commit b8dee50

Browse files
committed
Update ImportProcessContext.cs
1 parent cf0eed0 commit b8dee50

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/FluentCommand.SqlServer/Import/ImportProcessContext.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,10 @@ private List<ImportFieldMapping> GetMappedFields()
103103
}
104104

105105
if (mapping.Index.Value >= columns)
106+
{
106107
throw new IndexOutOfRangeException(
107108
$"The mapped index {mapping.Index.Value} for field '{name}' is out of range of {columns}");
109+
}
108110

109111
list.Add(new ImportFieldMapping(field, mapping));
110112
}

0 commit comments

Comments
 (0)