Rename all error_code instances to ec

We're not consistent here, which leads to people copying and pasting
code all over, which has lead to a bunch of different names for error
codes.

This commit changes to coerce them all to "ec", because that's what
boost uses for a naming convention.

Tested: Rename only, code compiles.

Change-Id: I7053cc738faa9f7a82f55fc46fc78618bdf702a5
Signed-off-by: Ed Tanous <edtanous@google.com>
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp
index ce4203b..678ab43 100644
--- a/redfish-core/lib/log_services.hpp
+++ b/redfish-core/lib/log_services.hpp
@@ -818,9 +818,9 @@
 
         std::shared_ptr<task::TaskData> task = task::TaskData::createTask(
             [createdObjPath, dumpEntryPath, dumpId, isProgressIntfPresent](
-                const boost::system::error_code& err, sdbusplus::message_t& msg,
+                const boost::system::error_code& ec2, sdbusplus::message_t& msg,
                 const std::shared_ptr<task::TaskData>& taskData) {
-            if (err)
+            if (ec2)
             {
                 BMCWEB_LOG_ERROR << createdObjPath.str
                                  << ": Error in creating dump";
@@ -3599,9 +3599,9 @@
                 return;
             }
             std::shared_ptr<task::TaskData> task = task::TaskData::createTask(
-                [](const boost::system::error_code& err, sdbusplus::message_t&,
+                [](const boost::system::error_code& ec2, sdbusplus::message_t&,
                    const std::shared_ptr<task::TaskData>& taskData) {
-                if (!err)
+                if (!ec2)
                 {
                     taskData->messages.emplace_back(messages::taskCompletedOK(
                         std::to_string(taskData->index)));