oem-ibm: Log pel on decode failure

In the current code, the DecodeNewFileResponseFail PEL is logged for
both decode failure of the NewFileAvailable response and when a
non-success response is received for the command.

But the "DecodeNewFileResponseFail" error just covers the decode failure
(SRC Description - "Failed to decode the response of certificate/license
file sent to the host.") So updated the code to log pel on decode
failure of new file available response.

Change-Id: If2a5cb000536b490321a7784dac4c49572a08f95
Signed-off-by: Archana Kakani <archana.kakani@ibm.com>
diff --git a/oem/ibm/requester/dbus_to_file_handler.cpp b/oem/ibm/requester/dbus_to_file_handler.cpp
index 8ed966c..6ca2975 100644
--- a/oem/ibm/requester/dbus_to_file_handler.cpp
+++ b/oem/ibm/requester/dbus_to_file_handler.cpp
@@ -282,8 +282,11 @@
             error(
                 "Failed to decode new file available response for vmi or remote terminus returned error, response code '{RC}' and completion code '{CC}'",
                 "RC", rc, "CC", completionCode);
-            pldm::utils::reportError(
-                "xyz.openbmc_project.PLDM.Error.DecodeNewFileResponseFail");
+            if (rc)
+            {
+                pldm::utils::reportError(
+                    "xyz.openbmc_project.PLDM.Error.DecodeNewFileResponseFail");
+            }
         }
     };
     rc = handler->registerRequest(