Skip to content
Permalink
Browse files

Merge pull request #8006 from sbrunner/print-error

[Server] Print an error message, on project load error
  • Loading branch information
sbrunner committed Sep 25, 2018
2 parents 517b50c + 5f33137 commit 981aea71cd3dcc186aaedede189ac5438608b82a
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/server/qgsconfigcache.cpp
@@ -47,6 +47,12 @@ const QgsProject *QgsConfigCache::project( const QString &path )
mProjectCache.insert( path, prj.release() );
mFileSystemWatcher.addPath( path );
}
else
{
QgsMessageLog::logMessage(
this->tr( "Error when loading project file '%1': %2 " ).arg( path, prj->error() ),
QStringLiteral( "Server" ), Qgis::Critical );
}
}
QgsProject::setInstance( mProjectCache[ path ] );
return mProjectCache[ path ];

0 comments on commit 981aea7

Please sign in to comment.
You can’t perform that action at this time.