[libcalamares] More verbose when loading YAML for Python

This commit is contained in:
Adriaan de Groot 2021-11-29 14:19:06 +01:00
parent 1260d3fcb9
commit 65488ca174

View File

@ -167,7 +167,14 @@ error( const std::string& s )
boost::python::dict
load_yaml( const std::string& path )
{
return variantMapToPyDict( CalamaresUtils::loadYaml( QString::fromStdString( path ) ) );
const QString filePath = QString::fromStdString( path );
bool ok = false;
auto map = CalamaresUtils::loadYaml( filePath, &ok );
if ( !ok )
{
cWarning() << "Loading YAML from" << filePath << "failed.";
}
return variantMapToPyDict( map );
}