Skip to content

Commit 5f33137

Browse files
committed
Print an error message, on project load error
1 parent 85ff90f commit 5f33137

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/server/qgsconfigcache.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ const QgsProject *QgsConfigCache::project( const QString &path )
4747
mProjectCache.insert( path, prj.release() );
4848
mFileSystemWatcher.addPath( path );
4949
}
50+
else
51+
{
52+
QgsMessageLog::logMessage(
53+
this->tr( "Error when loading project file '%1': %2 " ).arg( path, prj->error() ),
54+
QStringLiteral( "Server" ), Qgis::Critical );
55+
}
5056
}
5157
QgsProject::setInstance( mProjectCache[ path ] );
5258
return mProjectCache[ path ];

0 commit comments

Comments
 (0)