Browse Source

Merge topic 'show_autogen_exit_code' into release-3.27

bddd8f0e54 cmWorkerPool: Show process exit code / signal number upon failure

Acked-by: Kitware Robot <[email protected]>
Acked-by: buildbot <[email protected]>
Merge-request: !8622
Brad King 2 years ago
parent
commit
937fa28a6d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmWorkerPool.cxx

+ 1 - 1
Source/cmWorkerPool.cxx

@@ -309,7 +309,7 @@ void cmUVReadOnlyProcess::UVExit(uv_process_t* handle, int64_t exitStatus,
     // Set error message on demand
     proc.Result()->ExitStatus = exitStatus;
     proc.Result()->TermSignal = termSignal;
-    if (!proc.Result()->error()) {
+    if (proc.Result()->ErrorMessage.empty()) {
       if (termSignal != 0) {
         proc.Result()->ErrorMessage = cmStrCat(
           "Process was terminated by signal ", proc.Result()->TermSignal);