From cad08e1ea9d722801b1e6675b88a8513bdc6078a Mon Sep 17 00:00:00 2001 From: "Robin.Mueller" Date: Sat, 19 Sep 2020 20:54:27 +0200 Subject: [PATCH] error output for failed deletion --- storagemanager/ConstStorageAccessor.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/storagemanager/ConstStorageAccessor.cpp b/storagemanager/ConstStorageAccessor.cpp index 6235ac40..5c143adb 100644 --- a/storagemanager/ConstStorageAccessor.cpp +++ b/storagemanager/ConstStorageAccessor.cpp @@ -14,7 +14,12 @@ ConstStorageAccessor::ConstStorageAccessor(store_address_t storeId, ConstStorageAccessor::~ConstStorageAccessor() { if(deleteData and store != nullptr) { - store->deleteData(storeId); + ReturnValue_t result = store->deleteData(storeId); + if(result != HasReturnvaluesIF::RETURN_OK) { + // Configuration error. + sif::error << "ConstStorageAccessor::~ConstStorageAccessor: " + << "Could not delete entry!" << std::endl; + } } }