Skip to content

Commit

Permalink
Add Filename to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mach0 authored and m-kuhn committed Apr 29, 2017
1 parent b29a10e commit 177bc99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsproject.cpp
Expand Up @@ -765,8 +765,8 @@ bool QgsProject::read()
tr( "%1 at line %2 column %3" ).arg( errorMsg ).arg( line ).arg( column ) );
#endif

QString errorString = tr( "Project file read error: %1 at line %2 column %3" )
.arg( errorMsg ).arg( line ).arg( column );
QString errorString = tr( "Project file read error in file %1: %2 at line %3 column %4" )
.arg( mFile.fileName() ).arg( errorMsg ).arg( line ).arg( column );

QgsDebugMsg( errorString );

Expand Down

0 comments on commit 177bc99

Please sign in to comment.