From 4e2de2766f2ede4ad5246587fe720d8a7a416015 Mon Sep 17 00:00:00 2001 From: Dimitrios Stoupis <dimitris.apple@gmail.com> Date: Mon, 3 Dec 2018 01:38:33 +0000 Subject: [PATCH] Add a missing failure report --- src/Services/MemoryManagementService.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Services/MemoryManagementService.cpp b/src/Services/MemoryManagementService.cpp index 56182676..8e7f954a 100644 --- a/src/Services/MemoryManagementService.cpp +++ b/src/Services/MemoryManagementService.cpp @@ -67,6 +67,8 @@ void MemoryManagementService::RawDataMemoryManagement::loadRawData(Message &requ // todo: Send a failed of execution report // todo: Remove the print statements in the final version // todo: The final implementation of exit on failure has to be well defined + mainService.requestVerificationService.failExecutionVerification( + request.packetType, true, 1, 1, 10, 6); std::cout << "We encountered a problem validating CRC!" << std::endl; continue; // Continue to the next command } @@ -172,6 +174,7 @@ void MemoryManagementService::RawDataMemoryManagement::checkRawData(Message &req } } + mainService.storeMessage(report); // Save the report message request.resetRead(); // Reset the reading count } else { -- GitLab