forked from University/epr24pr5-ojanssen2
fix: always return 0 in main
This commit is contained in:
parent
ab52f300e2
commit
287e51a563
1 changed files with 6 additions and 6 deletions
12
main.cpp
12
main.cpp
|
@ -50,16 +50,16 @@ int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
sc->run(parameter);
|
sc->run(parameter);
|
||||||
if (sc->should_display_result())
|
if (sc->should_display_result())
|
||||||
cout << "\n100: Alles erfolgreich\n";
|
cout << "100: Alles erfolgreich\n";
|
||||||
return sc->get_value();
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Error& e)
|
catch (Error& e)
|
||||||
{
|
{
|
||||||
cout << "\n" << e.get_nr() << ": " << e.what() << "\n";
|
cout << e.get_nr() << ": " << e.what() << "\n";
|
||||||
return e.get_nr();
|
return 0;
|
||||||
}
|
}
|
||||||
cout << "\n101: Befehl ist unbekannt.\n";
|
cout << "101: Befehl ist unbekannt.\n";
|
||||||
return 101;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue