Skip to content

Commit df245ed

Browse files
traversaroazeey
authored andcommitted
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> (cherry picked from commit 08dc62d)
1 parent 76a4ff3 commit df245ed

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)