check fix

This commit is contained in:
Anonymous275
2020-11-14 23:26:59 +02:00
parent db3f7b9988
commit 5753ebb887
7 changed files with 36 additions and 42 deletions
-3
View File
@@ -66,12 +66,9 @@ void warn(const std::string& toPrint){
addToLog(Print);
}
void error(const std::string& toPrint) {
static int ECounter = 0;
std::string Print = getDate() + Sec("[ERROR] ") + toPrint + "\n";
std::cout << Print;
addToLog(Print);
if(ECounter > 10)exit(7);
ECounter++;
}
void except(const std::string& toPrint) {
std::string Print = getDate() + Sec("[EXCEP] ") + toPrint + "\n";