forked from University/epr24pr5-ojanssen2
fix: another Task one
This commit is contained in:
parent
36e4ff362d
commit
b0c9f630a6
1 changed files with 13 additions and 7 deletions
20
Task.cpp
20
Task.cpp
|
@ -58,12 +58,14 @@ 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];
|
{
|
||||||
if (i < t.children.size() - 1) {
|
os << t.children[i];
|
||||||
os << " ";
|
if (i < t.children.size() - 1)
|
||||||
}
|
{
|
||||||
|
os << " ";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
os << "\n";
|
os << "\n";
|
||||||
return os;
|
return 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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue