Skip to content

Commit 368223a

Browse files
committed
Show project path in server parsing error (revert before release)
(an attempt to debug test failures in debian)
1 parent 8042343 commit 368223a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/qgsserver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ QPair<QByteArray, QByteArray> QgsServer::handleRequest( const QString& queryStri
537537
);
538538
if ( !p )
539539
{
540-
theRequestHandler->setServiceException( QgsMapServiceException( "Project file error", "Error reading the project file" ) );
540+
theRequestHandler->setServiceException( QgsMapServiceException( "Project file error", QString( "Error reading the project file: %1" ).arg( configFilePath ) ) );
541541
}
542542
else
543543
{
@@ -563,7 +563,7 @@ QPair<QByteArray, QByteArray> QgsServer::handleRequest( const QString& queryStri
563563
);
564564
if ( !p )
565565
{
566-
theRequestHandler->setServiceException( QgsMapServiceException( "Project file error", "Error reading the project file" ) );
566+
theRequestHandler->setServiceException( QgsMapServiceException( "Project file error", QString( "Error reading the project file: %1" ).arg( configFilePath ) ) );
567567
}
568568
else
569569
{

0 commit comments

Comments
 (0)