HomePhabricator
Diffusion Comm 5e98f07c70b3

[native][backup_client] Handle BackupNotFound in retrieve_latest_backup_info

Description

[native][backup_client] Handle BackupNotFound in retrieve_latest_backup_info

Summary:
Rust part of ENG-10039

Depends on D14189

Test Plan:
For:

  • user with backup
  • without backup
  • not existing user
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

Details

Provenance
bartekAuthored on Jan 9 2025, 1:48 AM
Reviewer
tomek
Differential Revision
D14190: [native][backup_client] Handle BackupNotFound in retrieve_latest_backup_info
Parents
rCOMM7fa801fc07cb: [native] Make retrieveLatestBackupInfo return type nullable
Branches
Loading...
Tags
Loading...