Skip to content
Permalink
Browse files

Add layer name to the error message of the missing fields in msOGRLay…

…erInitItemInfo (#5755)
  • Loading branch information...
szekerest committed Mar 3, 2019
1 parent 77d48b0 commit 9ab89550d10e8736385a436132511a74eedef33a
Showing with 2 additions and 2 deletions.
  1. +2 −2 mapogr.cpp
@@ -4421,9 +4421,9 @@ static int msOGRLayerInitItemInfo(layerObj *layer)
}
if(itemindexes[i] == -1) {
msSetError(MS_OGRERR,
"Invalid Field name: %s",
"Invalid Field name: %s in layer `%s'",
"msOGRLayerInitItemInfo()",
layer->items[i]);
layer->items[i], layer->name ? layer->name : "(null)");
return(MS_FAILURE);
}
}

0 comments on commit 9ab8955

Please sign in to comment.
You can’t perform that action at this time.