Skip to content

Commit

Permalink
change error message #2225
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Sep 6, 2023
1 parent 1dd4d01 commit 1569aa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gdal_write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ std::vector<int> GetFieldIndex(OGRLayer *poLayer, Rcpp::List obj) {
void SetFields(OGRFeature *poFeature, std::vector<OGRFieldType> tp, Rcpp::List obj, size_t i, std::vector<int> fld) {
for (size_t j = 0; j < tp.size(); j++) {
if (j >= (size_t) poFeature->GetFieldCount())
Rcpp::stop("Impossible: field count reached\n"); // #nocov
Rcpp::stop("Field count reached: duplicate names present?\n"); // #nocov
switch (tp[j]) {
case OFTString: {
Rcpp::CharacterVector cv;
Expand Down

0 comments on commit 1569aa7

Please sign in to comment.