fix: another Task one

This commit is contained in:
moonleay 2025-02-09 21:45:10 +01:00
parent 36e4ff362d
commit b0c9f630a6
Signed by: moonleay
GPG key ID: 82667543CCD715FB

View file

@ -58,12 +58,14 @@ namespace models
// Fügt Childen Task mit passenden Lehrzeichen hinzu
if (!t.children.empty())
os << " ";
for (size_t i = 0; i < t.children.size(); ++i) {
os << t.children[i];
if (i < t.children.size() - 1) {
os << " ";
}
for (size_t i = 0; i < t.children.size(); ++i)
{
os << t.children[i];
if (i < t.children.size() - 1)
{
os << " ";
}
}
os << "\n";
return os;
@ -86,8 +88,10 @@ namespace models
t = {id, name, description, children};
return is;
}
catch (Error& _)
catch (Error& err)
{
if (err.get_nr() != 700)
throw;
throw Error(602, "Datei hat ein unbekanntes Format.");
}
}
@ -115,8 +119,10 @@ namespace models
t = {ft};
return is;
}
catch (Error& _)
catch (Error& err)
{
if (err.get_nr() != 700)
throw;
throw Error(102, "Ein Parameter eines Befehls konnte nicht gelesen werden");
}
}