Error handling for isPowerVsConfiguration API

This commit updates isPowerVsConfiguration 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: I39337b48893476b9dc0d293f414c4766ba283736
Signed-off-by: Rekha Aparna <vrekhaaparna@ibm.com>
diff --git a/vpd-manager/include/utility/vpd_specific_utility.hpp b/vpd-manager/include/utility/vpd_specific_utility.hpp
index e744f16..96edbbc 100644
--- a/vpd-manager/include/utility/vpd_specific_utility.hpp
+++ b/vpd-manager/include/utility/vpd_specific_utility.hpp
@@ -793,12 +793,15 @@
  * @brief API to detect if system configuration is that of PowerVS system.
  *
  * @param[in] i_imValue - IM value of the system.
+ * @param[out] o_errCode - To set error code in case of error.
  * @return true if it is PowerVS configuration, false otherwise.
  */
-inline bool isPowerVsConfiguration(const types::BinaryVector& i_imValue)
+inline bool isPowerVsConfiguration(const types::BinaryVector& i_imValue,
+                                   uint16_t& o_errCode)
 {
     if (i_imValue.empty() || i_imValue.size() != constants::VALUE_4)
     {
+        o_errCode = error_code::INVALID_INPUT_PARAMETER;
         return false;
     }