Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gz topic -p publishes an empty message even when the input message to publish is invalid #442

Closed
azeey opened this issue Sep 21, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@azeey
Copy link
Contributor

azeey commented Sep 21, 2023

Environment

  • OS Version: Ubuntu 22.04
  • Source or binary build? gz-transport3, 184c3df

Description

  • Expected behavior: When the input message provided to gz topic -p is invalid, it should print an error and quit.
  • Actual behavior: It prints an error and actually publishes an empty message.

Steps to reproduce

  1. In one terminal, run gz topic -e --json-output -t chatter
  2. In another, run gz toic -t chatter -m gz.msgs.Double -p "0.5"

The first terminal should print {} indicating an empty message was received[

@azeey azeey added the bug Something isn't working label Sep 21, 2023
@mjcarroll
Copy link
Contributor

gazebosim/gz-msgs#384

@azeey
Copy link
Contributor Author

azeey commented Sep 21, 2023

Thanks @mjcarroll!

@azeey azeey closed this as completed Sep 21, 2023
@github-project-automation github-project-automation bot moved this from Inbox to Done in Core development Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants