[libcalamaresui] Improve explainYamlException

- overloads for common kinds of label
 - improve error reporting when reading settings and branding files
This commit is contained in:
Adriaan de Groot 2018-02-26 20:07:06 +01:00
parent e5ca8e091f
commit fdda0e14aa
4 changed files with 20 additions and 5 deletions

View file

@ -156,12 +156,12 @@ Settings::Settings( const QString& settingsFilePath,
}
catch ( YAML::Exception& e )
{
cWarning() << "YAML parser error " << e.what() << "in" << file.fileName();
CalamaresUtils::explainYamlException( e, ba, file.fileName() );
}
}
else
{
cWarning() << "Cannot read " << file.fileName();
cWarning() << "Cannot read settings file" << file.fileName();
}
s_instance = this;