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