Skip to content

Commit ac4d5a3

Browse files
mergify[bot]traversaroazeey
authored
sim_main: Print clear error in case CreateProcessA fails (#3104) (#3161)
(cherry picked from commit 08dc62d) Signed-off-by: Silvio Traversaro <silvio@traversaro.it> Co-authored-by: Silvio Traversaro <silvio@traversaro.it> Co-authored-by: Addisu Z. Taddese <addisu@openrobotics.org>
1 parent 76a4ff3 commit ac4d5a3

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
@@ -160,6 +160,8 @@ int launchProcess(
160160
if(!CreateProcessW(NULL, cmd_line, NULL, NULL, FALSE, 0,
161161
NULL, NULL, &si, &pi))
162162
{
163+
gzerr << "Failure in creating process for command "
164+
<< command << std::endl;
163165
return -1;
164166
}
165167

0 commit comments

Comments
 (0)