Now displaying compilation errors in logger with status bar

This commit is contained in:
Antoine Pilote
2024-08-16 17:58:06 -04:00
parent 2aa54db49e
commit 9c2a6f9019
4 changed files with 128 additions and 17 deletions

View File

@@ -142,7 +142,7 @@ namespace Nuake {
return path;
}
void OS::CompileSln(const std::string& slnPath)
std::string OS::CompileSln(const std::string& slnPath)
{
std::string output = "";
std::string err = "";
@@ -154,9 +154,11 @@ namespace Nuake {
Logger::Log(err.c_str(), ".NET", LOG_TYPE::COMPILATION);
}
Logger::Log(output.c_str(), ".NET");
return output;
}
int OS::Subprocess(const std::string& command, std::string& out, std::string& err)
{
auto splits = String::Split(command, ' ');