Skip to content

Commit

Permalink
Add layer name to the error message of the missing fields in msOGRLay…
Browse files Browse the repository at this point in the history
…erInitItemInfo (MapServer#5755)
  • Loading branch information
szekerest committed Mar 3, 2019
1 parent 77d48b0 commit 9ab8955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mapogr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 9ab8955

Please sign in to comment.