YAML: on error, report filename along with location

This commit is contained in:
Adriaan de Groot 2017-09-06 05:10:33 -04:00 committed by Philip
parent 154aa4b0bd
commit a9e1f48c51
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ Branding::Branding( const QString& brandingFilePath,
}
catch ( YAML::Exception& e )
{
cDebug() << "WARNING: YAML parser error " << e.what();
cDebug() << "WARNING: YAML parser error " << e.what() << "in" << file.fileName();
}
QDir translationsDir( componentDir.filePath( "lang" ) );

View File

@ -156,7 +156,7 @@ Settings::Settings( const QString& settingsFilePath,
}
catch ( YAML::Exception& e )
{
cDebug() << "WARNING: YAML parser error " << e.what();
cDebug() << "WARNING: YAML parser error " << e.what() << "in" << file.fileName();
}
}
else