Error reporting when blob to delete was not found
This commit is contained in:
parent
c49663842c
commit
bf02682734
@ -113,11 +113,8 @@ optional<unique_ref<blobstore::Blob>> CryDevice::LoadBlob(const blockstore::Key
|
|||||||
|
|
||||||
void CryDevice::RemoveBlob(const blockstore::Key &key) {
|
void CryDevice::RemoveBlob(const blockstore::Key &key) {
|
||||||
auto blob = _blobStore->load(key);
|
auto blob = _blobStore->load(key);
|
||||||
if(blob) {
|
ASSERT(blob != none, "Blob not found");
|
||||||
_blobStore->remove(std::move(*blob));
|
_blobStore->remove(std::move(*blob));
|
||||||
} else {
|
|
||||||
//TODO Log error
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Key CryDevice::GetOrCreateRootKey(CryConfig *config) {
|
Key CryDevice::GetOrCreateRootKey(CryConfig *config) {
|
||||||
|
Loading…
Reference in New Issue
Block a user