8000 Add a sanity check and error handling for Intercept initialization · Issue #154 · intercept/intercept · GitHub
[go: up one dir, main page]

Skip to content

Add a sanity check and error handling for Intercept initialization #154

@overfl0

Description

@overfl0

Right now, when initializing Intercept with a faulty intercept.dll or no such file at all, there is no clear notification pointing to the cause of Intercept not working.

Add a small sanity check prior to initializing intercept. boot.sqf would be the best place, i guess. Call Intercept with the echo function and see if it returns the expected value prior to doing any other operation.
On failure, print an error to the logs and show a message to the user, if possible.

Sure, this is going to happen very seldom, but that is no reason for not having error handling at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0