Error handling for executeCmd API
This commit updates executeCmd API to set error code in case of error.
This helps the caller of API to take action based on the error code
returned from the API.
Change-Id: Ie5b7804f5d486a278765d460eabaef0bd46d555e
Signed-off-by: Rekha Aparna <vrekhaaparna@ibm.com>
diff --git a/vpd-manager/include/utility/json_utility.hpp b/vpd-manager/include/utility/json_utility.hpp
index 9f5e12a..83617d7 100644
--- a/vpd-manager/include/utility/json_utility.hpp
+++ b/vpd-manager/include/utility/json_utility.hpp
@@ -319,7 +319,7 @@
i_parsedConfigJson["frus"][i_vpdFilePath].at(
0)[i_baseAction][i_flagToProcess]["systemCmd"]["cmd"];
- commonUtility::executeCmd(l_systemCommand);
+ commonUtility::executeCmd(l_systemCommand, o_errCode);
}
catch (const std::exception& l_ex)
{