Prevent termination on OCC open/read/write errors

Instead of creating an elog and terminating, the code will now retry on
a Open/Read/Write failure and if it continues to fail, it will return a
CommFailure to the caller. Then the caller of can determine how to
handle (reset PM complex or ignore).
Normally all communication errors with the OCC should trigger an OCC
reset.

Change-Id: Ibf272270156edae565231ca429f15e8fca2f15bc
Signed-off-by: Chris Cain <cjcain@us.ibm.com>
diff --git a/occ_pass_through.cpp b/occ_pass_through.cpp
index dd4e773..c826983 100644
--- a/occ_pass_through.cpp
+++ b/occ_pass_through.cpp
@@ -97,14 +97,11 @@
     }
     else
     {
-        if (status == CmdStatus::OPEN_FAILURE)
-        {
-            log<level::WARNING>("PassThrough::send() - OCC not active yet");
-        }
-        else
-        {
-            log<level::ERR>("PassThrough::send() - OCC command failed!");
-        }
+        log<level::ERR>(
+            fmt::format(
+                "PassThrough::send(): OCC command failed with status {}",
+                uint32_t(status))
+                .c_str());
     }
 
     return response;