diff --git a/ZSharp/Main.cpp b/ZSharp/Main.cpp index 37a3063..a526e79 100644 --- a/ZSharp/Main.cpp +++ b/ZSharp/Main.cpp @@ -940,7 +940,7 @@ int main(int argc, char* argv[]) else { // If no script is provided as an argument throw error LogWarning("No script provided! Please drag and drop .ZS file over interpreter executable file, or provide it's path as a command-line argument."); - cout << "Press Enter to Continue"; + InterpreterLog("Press Enter to Exit..."); cin.ignore(); exit(1); } @@ -965,7 +965,7 @@ int main(int argc, char* argv[]) // Entire script has been run, exit. #if DEVELOPER_MESSAGES // If built with developer messages, then verify exit - cout << "Press Enter to Continue"; + InterpreterLog("Press Enter to Exit..."); cin.ignore(); exit(1); #else @@ -977,14 +977,14 @@ int main(int argc, char* argv[]) if (a == "-ve") // If the '-ve' (verify exit) option is used, ask for verification on exit { - cout << "Press Enter to Continue"; + InterpreterLog("Press Enter to Exit..."); cin.ignore(); exit(1); } } else if (AnyAsBool(GetVariableValue("EXIT_WHEN_DONE", globalVariableValues)) == false) { - cout << "Press Enter to Continue"; + InterpreterLog("Press Enter to Exit..."); cin.ignore(); exit(1); } diff --git a/ZSharp/builtin.h b/ZSharp/builtin.h index 57c9d72..b43a5b0 100644 --- a/ZSharp/builtin.h +++ b/ZSharp/builtin.h @@ -207,7 +207,7 @@ int LogCriticalError(const string& errorText) PrintColored("ZSharp: ", yellowFGColor, "", true); PrintColored(errorText, redFGColor, "", true); cerr << std::endl; - cout << "Press Enter to Continue"; + InterpreterLog("Press Enter to Exit..."); cin.ignore(); exit(1); //cerr << "\x1B[34m[" + to_string(Hour) + ":" + to_string(Min) + ":" + to_string(Sec) + "] \x1B[33mZSharp: \x1B[31mERROR: " << errorText << "\033[0m\t\t" << endl;