mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-04 00:30:59 -05:00
Print an error message, on project load error
This commit is contained in:
parent
85ff90f5b2
commit
5f33137c83
@ -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 ];
|
||||
|
Loading…
x
Reference in New Issue
Block a user