Skip to content

gz fuel download returns 0, even when the download failed #349

@deniz-hofmeister

Description

@deniz-hofmeister

Environment

Description

  • Expected behavior: return code non-zero
  • Actual behavior:error code zero
root@user-desktop:/gazebo# gz fuel download --url https://fuel.gazebosim.org/1.0/openrobotics/models/sydney_regatta
[Err] [FuelClient.cc:677] Failed to download model.
  Server: https://fuel.gazebosim.org
  Route: openrobotics/models/sydney_regatta/tip/sydney_regatta.zip
  REST response code: 504
Download failed.
root@user-desktop:/gazebo# echo $?
0

It would be nice to have a non-zero return code in the terminal, as it would make error handling and catching easier.

Greetings

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type

Projects

Status

To do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions