Skip to content

Swallow message errors and continue. #587

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

Merged
merged 2 commits into from
Mar 1, 2016
Merged

Swallow message errors and continue. #587

merged 2 commits into from
Mar 1, 2016

Conversation

tcr3dr
Copy link
Contributor

@tcr3dr tcr3dr commented Feb 24, 2016

Because a failed "*" handler can kill all subsequent message handlers, it becomes very hard to track down where an error is being found.

This patch handles errors consistently with how they are handled at a higher level (in mavlink_thread_in). A more robust error handling mechanism (with configurable logging) is desired, but this patch is more essential for now.

@hamishwillee
Copy link
Contributor

@tcr3dr Tests failed - no idea how to unblock appveyor. This looks sane. Any way we could print out the listener function name if it exists as well - would make debugging just a little easier.

@hamishwillee
Copy link
Contributor

Also this is labelled WIP, so won't do anything until you say :-)

@peterbarker
Copy link
Contributor

👍 LGTM

@tcr3dr tcr3dr changed the title [WIP] Swallow message errors and continue. Swallow message errors and continue. Mar 1, 2016
@tcr3dr
Copy link
Contributor Author

tcr3dr commented Mar 1, 2016

@peterbarker This is no longer a WIP, since it's about done. We do not need it in production, but it can still land if anyone is interested.

peterbarker added a commit that referenced this pull request Mar 1, 2016
Catch and display message and attribute errors, then continue.
@peterbarker peterbarker merged commit b201c51 into master Mar 1, 2016
@peterbarker peterbarker deleted the tcr-please branch March 1, 2016 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants