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
F3754562: D14190.id46621.diff
Fri, Jan 10, 3:28 AM
F3754468: D14190.id46636.diff
Fri, Jan 10, 3:06 AM
Unknown Object (File)
Thu, Jan 9, 4:54 AM
Unknown Object (File)
Thu, Jan 9, 4:53 AM
Unknown Object (File)
Thu, Jan 9, 4:51 AM
Unknown Object (File)
Thu, Jan 9, 4:50 AM
Unknown Object (File)
Thu, Jan 9, 4:21 AM
Unknown Object (File)
Thu, Jan 9, 4:17 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