Skip to content
Snippets Groups Projects

Should throw error on reading ill-formed .pet-file (e.g. wrong decimal separator)

Compare and Show latest version
2 files
+ 7
4
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 6
4
@@ -140,10 +140,12 @@ bool readBool(const QDomElement &elem, const QString &name, const bool &defaultV
{
return false;
}
throw std::domain_error(QString("Could not parse parameter %1 successfully, Value %2. Ill-formed .pet-file.")
.arg(name)
.arg(value)
.toStdString());
throw std::domain_error(
QString("Could not parse parameter %1 successfully, Value %2, Elem %3. Ill-formed .pet-file.")
.arg(name)
.arg(value)
.arg(elem.tagName())
.toStdString());
}
return defaultVal;
}
Loading