Add hex exit code to message when worker fails
MODIFY
src/WebJobs.Script/Workers/ProcessManagement/WorkerProcess.cs
src/WebJobs.Script/Workers/ProcessManagement/WorkerProcess.cs
@@ -158,7 +158,7 @@ private void OnProcessExited(object sender, EventArgs e)
}
else
{
- var processExitEx = new WorkerProcessExitException($"{Process.StartInfo.FileName} exited with code {Process.ExitCode}", new Exception(exceptionMessage));
+ var processExitEx = new WorkerProcessExitException($"{Process.StartInfo.FileName} exited with code {Process.ExitCode} (0x{Process.ExitCode.ToString("X")})", new Exception(exceptionMessage));
processExitEx.ExitCode = Process.ExitCode;
processExitEx.Pid = Process.Id;
HandleWorkerProcessExitError(processExitEx);

Add hex exit code to message when worker fails (#8260)