Skip to content

Commit

Permalink
Merge pull request #8006 from sbrunner/print-error
Browse files Browse the repository at this point in the history
[Server] Print an error message, on project load error
  • Loading branch information
sbrunner committed Sep 25, 2018
2 parents 517b50c + 5f33137 commit 981aea7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/server/qgsconfigcache.cpp
Expand Up @@ -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 ];
Expand Down

0 comments on commit 981aea7

Please sign in to comment.