Skip to content

Commit

Permalink
include position in XML parse error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Oct 21, 2012
1 parent 68c7b49 commit a3db526
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gdal/ogr/ogrsf_frmts/gml/gmlhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ void GMLXercesHandler::fatalError( const SAXParseException &exception)

pszErrorMessage = tr_strdup( exception.getMessage() );
CPLError( CE_Failure, CPLE_AppDefined,
"XML Parsing Error: %s\n",
pszErrorMessage );
"XML Parsing Error: %s at line %d, column %d\n",
pszErrorMessage, exception.getLineNumber(), exception.getColumnNumber() );

CPLFree( pszErrorMessage );
}
Expand Down
4 changes: 2 additions & 2 deletions gdal/ogr/ogrsf_frmts/nas/nashandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,8 +604,8 @@ void NASHandler::fatalError( const SAXParseException &exception)

pszErrorMessage = tr_strdup( exception.getMessage() );
CPLError( CE_Failure, CPLE_AppDefined,
"XML Parsing Error: %s\n",
pszErrorMessage );
"XML Parsing Error: %s at line %d, column %d\n",
pszErrorMessage, exception.getLineNumber(), exception.getColumnNumber() );

CPLFree( pszErrorMessage );
}
Expand Down

0 comments on commit a3db526

Please sign in to comment.