Skip to content
Permalink
Browse files

Print an error message, on project load error

  • Loading branch information
sbrunner committed Sep 25, 2018
1 parent 85ff90f commit 5f33137c83c6b02b2e98f989786b142a09a4bb57
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 5f33137

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