-
Notifications
You must be signed in to change notification settings - Fork 5
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
Check how errors are shown #36
Comments
Now that errors are actually handled by the plugin; we can recheck its information. |
We should just check that the text is proper and correct? |
Manly that when the error occurs, the error message is shown and it is the correct one. @olabini |
OK, make sense. |
These are the error messages: https://github.com/otrv4/otrv4/blob/master/otrv4.md#otr-error-messages |
@peterpalau This are the error messages:
You can find the first one here: You can find the second one here: You can find the third one like here: https://github.com/otrv4/libotr-ng/blob/master/src/otrng.c#L1285, when the instance tags do not correspond. |
The way error messages work is like this: Alice sends a data message which has some kind of error. Bob receives it but instead of displaying it to the user, it sends an error message saying "hey your message had an error". Alice receives this error message and it gets displayed to her. You can see how they work here: https://github.com/otrv4/libotr-ng/blob/master/src/test/functionals/test_api.c#L568 |
@claucece Maybe you know what about this error in
I know that when the assertion condition is But why |
I found the reason or maybe how to solve this, is setting |
Hey @peterpalau ! I guess you solved it ;) Let me know if it still persists ;) |
@claucece this is interesting. If
Even forcing the library to show the error I'm missing something? |
hey @peterpalau !
Alice. I have just tested and it shows up to Alice. See:
Yeah, they should. Only one message is malformed. It does not mean that the rest will be. |
- This commit improve the texts of the error messages. - This refer to issue #36
- The unreadable message error should be shown to the person receiving the message - This is related to #36
Check the text shown to the user.
The text was updated successfully, but these errors were encountered: