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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when initializing a plugin fails #1618

Merged
merged 1 commit into from Apr 30, 2021

Conversation

dominiklohmann
Copy link
Member

@dominiklohmann dominiklohmann commented Apr 30, 2021

馃摂 Description

There's no point in plugin::initialize() returning an error if it's never checked. So let's actually check and refuse to start if any plugin fails to initialize.

馃摑 Checklist

  • All user-facing changes have changelog entries.
  • The changes are reflected on docs.tenzir.com/vast, if necessary.
  • The PR description contains instructions for the reviewer, if necessary.

馃幆 Review Instructions

The change is really simple, so looking at the code should suffice.

@dominiklohmann dominiklohmann added the bug Incorrect behavior label Apr 30, 2021
@dominiklohmann dominiklohmann requested a review from a team April 30, 2021 13:34
@dominiklohmann dominiklohmann force-pushed the topic/plugin-error-on-failed-initialize branch from 2488628 to 11cbfbc Compare April 30, 2021 13:37
There's no point in `plugin::initialize()` returning an error if it's
never checked. So let's actually check and refuse to start if any plugin
fails to initialize.
@dominiklohmann dominiklohmann force-pushed the topic/plugin-error-on-failed-initialize branch from 11cbfbc to 5842215 Compare April 30, 2021 14:15
Copy link
Member

@mavam mavam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't test, but the diff looks good.

@dominiklohmann dominiklohmann merged commit c91f79f into master Apr 30, 2021
@dominiklohmann dominiklohmann deleted the topic/plugin-error-on-failed-initialize branch April 30, 2021 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior
Projects
None yet
2 participants