Page MenuHomePhabricator

[native][backup_client] Handle BackupNotFound in retrieve_latest_backup_info
DraftPublic

Authored by bartek on Thu, Jan 9, 1:55 AM.
Tags
None
Referenced Files
F3735592: D14190.id.diff
Thu, Jan 9, 4:54 AM
F3735585: D14190.id46621.diff
Thu, Jan 9, 4:53 AM
F3735577: D14190.id46621.diff
Thu, Jan 9, 4:51 AM
F3735570: D14190.id.diff
Thu, Jan 9, 4:50 AM
F3735217: D14190.diff
Thu, Jan 9, 4:21 AM
F3735196: D14190.diff
Thu, Jan 9, 4:17 AM
F3735105: D14190.id46621.diff
Thu, Jan 9, 4:09 AM
F3735071: D14190.id.diff
Thu, Jan 9, 4:08 AM
Subscribers
This is a draft revision that has not yet been submitted for review.

Details

Reviewers
kamil
tomek
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);
  }
}
`

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage