Minor improvements

This commit is contained in:
PabloMK7 2025-03-25 21:04:18 +01:00
parent faa3a2d621
commit eca355a496
2 changed files with 5 additions and 3 deletions

View File

@ -610,8 +610,10 @@ ArticProtocolCommon::Buffer* ArticProtocolServer::MethodInterface::ResizeLastRes
void ArticProtocolServer::MethodInterface::FinishGood(int returnValue) {
if (state == MethodState::GENERATING_OUTPUT)
state = MethodState::FINISHED;
if (state == MethodState::PARSING_INPUT)
else if (state == MethodState::PARSING_INPUT)
state = MethodState::UNEXPECTED_PARSING_INPUT;
else if (state == MethodState::FINISHED)
state = MethodState::INTERNAL_METHOD_ERROR;
this->returnValue = returnValue;
}
void ArticProtocolServer::MethodInterface::FinishInternalError() {

View File

@ -153,12 +153,12 @@ void Logger::Handler() {
printf("[I] %s\n", log.string.c_str());
break;
case PendingLog::Type::WARNING:
topScreenConsole.fg = 19;
topScreenConsole.fg = 3;
printf("[W] %s\n", log.string.c_str());
topScreenConsole.fg = 0;
break;
case PendingLog::Type::ERROR:
topScreenConsole.fg = 17;
topScreenConsole.fg = 1;
printf("[E] %s\n", log.string.c_str());
topScreenConsole.fg = 0;
break;