Skip to content

Conversation

iequidoo
Copy link
Collaborator

@iequidoo iequidoo commented Jul 24, 2025

No description provided.

@iequidoo iequidoo force-pushed the iequidoo/receive_imf-skip-minor-errors branch from cadbf3a to 6fa0342 Compare July 24, 2025 13:19
@iequidoo iequidoo requested review from Hocuri and link2xt July 24, 2025 13:36
@link2xt
Copy link
Collaborator

link2xt commented Jul 25, 2025

Not sure this is an improvement. Ignoring errors adds more code paths where something goes wrong but we continue. Ignoring errors for "non-critical" operations like adding info messages, updating contact properties or other chats means we will not notice if they break unless we explicitly test that they work.

@iequidoo
Copy link
Collaborator Author

iequidoo commented Jul 26, 2025

Then we need to keep these errors in debug builds or even make them debug assertions. But in release builds we should make every effort not to miss messages.
EDIT: Done.

@iequidoo iequidoo marked this pull request as draft July 26, 2025 08:16
@iequidoo iequidoo marked this pull request as ready for review July 27, 2025 14:12
@iequidoo iequidoo marked this pull request as draft July 27, 2025 14:12
… errors

Follow-up to f27d54f. Non-critical errors shouldn't lead to missing messages. But in debug builds,
panic on such errors, otherwise we won't catch them w/o special tests.
@iequidoo iequidoo force-pushed the iequidoo/receive_imf-skip-minor-errors branch from 6fa0342 to 0a005c6 Compare July 27, 2025 16:10
@iequidoo iequidoo marked this pull request as ready for review July 27, 2025 16:10
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.

2 participants