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

Reacting on errors happening while loading a bag #14

Merged
merged 3 commits into from
Aug 14, 2017
Merged

Reacting on errors happening while loading a bag #14

merged 3 commits into from
Aug 14, 2017

Conversation

arne48
Copy link
Member

@arne48 arne48 commented Aug 3, 2017

The widget uses the functionalities of the Bag class without catching the eventual exceptions that could be raised due to faulty bags.
If this happens the exception was raised up to the terminal where the traceback was printed.
In the GUI on the other hand no indication was of an error was printed and "Loading" would have stayed in the status bar indefinitely.
The added code block outputs the information about the cause of the error to the status bar and the terminal.

@dirk-thomas
Copy link
Contributor

Thank you for the improvement. I made some small changes:

  • need to explicitly catch subclasses of ROSBagException, therefore no need for a separate function anymore
  • mention filename in messages
  • change some warnings to info messages (unrelated to patch)

@dirk-thomas dirk-thomas merged commit b4479ef into ros-visualization:master Aug 14, 2017
@mikepurvis mikepurvis mentioned this pull request Oct 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants