Skip to content

Commit

Permalink
Print an error message, on project load error
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Sep 25, 2018
1 parent 85ff90f commit 5f33137
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 5f33137

Please sign in to comment.