Skip to content

Commit a0647e1

Browse files
Improve exit code print
1 parent cb7c002 commit a0647e1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

runtime/src/CoreClr.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,12 @@ void CoreClr::CreateAppDomain(alt::IServer* server, alt::IResource* resource, co
295295
alt::String("coreclr-module: Unable to execute assembly in app path:") + executablePath + " exitCode:" +
296296
exitCode);
297297
} else {
298-
server->LogInfo(alt::String("coreclr-module: Assembly executed exitCode:") + exitCode);
298+
server->LogInfo("coreclr-module: Assembly executed");
299+
char* x_str = new char[10];
300+
sprintf(x_str, "exit code: %d", exitCode);
301+
server->LogInfo(
302+
alt::String(x_str));
303+
delete[] x_str;
299304
}
300305
}
301306
}

0 commit comments

Comments
 (0)