8000 C-API: `usercode_error` missing from `realm_sync_error` · Issue #7098 · realm/realm-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
C-API: usercode_error missing from realm_sync_error #7098
Closed
@nirinchev

Description

@nirinchev

When a client reset handler fails because of an error in the callback, the SDK calls realm_register_user_code_callback_error to store it. However, the error that we in the callback provided to realm_sync_config_set_error_handler is realm_sync_error, which doesn't contain a pointer to the original error. So we get an error with a message A fatal error occurred during client reset: 'User-provided callback failed' and code 1028, but we don't have a way to get to the original error that caused the problem.

Note to self: to repro this in dart, throw a user exception in the client reset handler.

Metadata

Metadata

Assignees

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