Skip to content

Commit 08dc62d

Browse files
traversaroazeey
andauthored
sim_main: Print clear error in case CreateProcessA fails (#3104)
Signed-off-by: Silvio Traversaro <silvio@traversaro.it> Co-authored-by: Addisu Z. Taddese <addisu@openrobotics.org>
1 parent fdeb7f1 commit 08dc62d

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
@@ -169,6 +169,8 @@ int launchProcess(
169169
if(!CreateProcessA(NULL, commandVec.data(), NULL, NULL, FALSE, 0,
170170
NULL, NULL, &si, &pi))
171171
{
172+
gzerr << "Failure in creating process for command "
173+
<< command << std::endl;
172174
return -1;
173175
}
174176

0 commit comments

Comments
 (0)