Display error feedback to end user (fixes #12) #13

Merged
luca0N merged 3 commits from dev_error_feedback into dev 2025-11-18 15:43:58 +00:00
Owner

This pull request introduces two important changes:

  1. if an error occurs in the new thread in libknock2, a new callback is called to indicate that an unrecoverable error occurred (at this time, it is not used to indicate warnings or non-critical errors), and
  2. display an alert dialog that tells the end user that an error occurred while connecting to the Knock2 server.
This pull request introduces two important changes: 1. if an error occurs in the new thread in libknock2, a new callback is called to indicate that an unrecoverable error occurred (at this time, it is not used to indicate warnings or non-critical errors), and 2. display an alert dialog that tells the end user that an error occurred while connecting to the Knock<sup>2</sup> server.
luca0N self-assigned this 2025-11-18 15:41:48 +00:00
Change return type of the analyze function in libknock2 from void to
int, so as to indicate whether the function succeeded (return code 0)
or not, and create a new callback function type for signaling errors
from the new thread.

The callback was created because otherwise it wouldn't be possible to
indicate that an error had occurred, since the capturing logic is
non-blocking.
In the Knock^2 server, listen for libknock2 errors and panic if an error
is signaled.
Display an alert dialog if a WebSocket error occurs, providing feedback
to the end user.
luca0N deleted branch dev_error_feedback 2025-11-18 15:43:58 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
luca0N/lanbassador!13
No description provided.