-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[native][backup_client] Handle BackupNotFound in retrieve_latest_back…
…up_info Summary: Rust part of [[ https://linear.app/comm/issue/ENG-10039/allow-checking-if-a-user-has-a-backup | ENG-10039 ]] Depends on D14189 Test Plan: For: - user with backup - without backup - not existing user ``` lang=javascript try { const result = await retrieveLatestBackupInfo('username123'); if (result === null) { console.log('backup not found'); } else { console.log('backup found', result); } } catch (e) { const msg = getMessageForException(e); if (msg === 'user_not_found') { console.log('user not found'); } else { console.log('error: ' + msg); } } ```` Reviewers: kamil, tomek Reviewed By: tomek Subscribers: ashoat Differential Revision: https://phab.comm.dev/D14190
- Loading branch information
Showing
2 changed files
with
34 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters