Skip to content

Commit

Permalink
[server] Clearer log message when parsing non-XML POST data
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed May 16, 2017
1 parent cbef51c commit 45166aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/qgsrequesthandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void QgsRequestHandler::parseInput()
if ( !doc.setContent( inputString, true, &errorMsg, &line, &column ) )
{
// XXX Output error but continue processing request ?
QgsMessageLog::logMessage( QStringLiteral( "Error parsing post data: at line %1, column %2: %3." )
QgsMessageLog::logMessage( QStringLiteral( "Warning: error parsing post data as XML: at line %1, column %2: %3. Assuming urlencoded query string sent in the post body." )
.arg( line ).arg( column ).arg( errorMsg ) );

// Process input string as a simple query text
Expand Down

0 comments on commit 45166aa

Please sign in to comment.