Skip to content

Commit 39279fa

Browse files
committed
sim_main: Print clear error in case CreateProcessA fails
Signed-off-by: Silvio Traversaro <silvio@traversaro.it>
1 parent fefd16b commit 39279fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cmd/sim_main.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ int launchProcess(
168168
if(!CreateProcessA(NULL, commandVec.data(), NULL, NULL, FALSE, 0,
169169
NULL, NULL, &si, &pi))
170170
{
171+
gzerr << "Failure in creating process for command "
172+
<< command << std::endl;
171173
return -1;
172174
}
173175

0 commit comments

Comments
 (0)