maliput / maliput_integration

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

malidrive_query throws bad_alloc when a command is mistyped #37

Closed andrewbest-tri closed 3 years ago

andrewbest-tri commented 4 years ago

Low priority but, when commands are mistyped, error is unhelpful.

malidrive_query ./foo.xodr FindRodPositions 0 0 0 10 -malidrive_backend=malidrive2
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted (core dumped)
francocipollone commented 3 years ago

Solved at https://github.com/ToyotaResearchInstitute/maliput_integration/pull/88

franco@65108c07d6a7:~/maliput_ws$ maliput_query asd
[ERROR] Not valid command provided: asd
Run 'maliput_query --help' for help.