diff --git a/ZSharp/Main.cpp b/ZSharp/Main.cpp index eab0dd3..64e1a04 100644 --- a/ZSharp/Main.cpp +++ b/ZSharp/Main.cpp @@ -803,7 +803,7 @@ int main(int argc, char* argv[]) // Change the current working directory to that of the script int chErr = chdir(projectDirectory.c_str()); if (chErr < 0) - LogCriticalError("Failed to change directory to: \"" + projectDirectory + "\", error num: " + chErr); + LogCriticalError("Failed to change directory to: \"" + projectDirectory + "\", error num: " + to_string(chErr)); #if DEVELOPER_MESSAGES InterpreterLog("Changed directory to " + projectDirectory + "..."); #endif