PEL: Still create PEL when error not in registry

When an OpenBMC event log is created for an error that isn't in the PEL
message registry, the code will now find a registry entry using another
default error name.  This default PEL will contain the severity and any
callouts specified by the original event log, and its message used by
peltool and possibly Redfish will state that the actual meaning for the
error is unknown.

The error name property that was missing from the registry will be
placed in the JSON UserData section that hold the AdditionalData
property fields under the key ERROR_NAME.

Doing this allows one to see all errors on a system just by looking at
PELs, and not miss important ones just because a developer doesn't have
their error in the registry yet.

When these are seen, it may be a good idea to create bug reports as a
reminder that the missing error needs to be added.

Change-Id: Ifa3db21af96745dd651da5f5af0ab970a952f46a
diff --git a/extensions/openpower-pels/registry/message_registry.json b/extensions/openpower-pels/registry/message_registry.json
index b4bf308..fcb0850 100644
--- a/extensions/openpower-pels/registry/message_registry.json
+++ b/extensions/openpower-pels/registry/message_registry.json
@@ -344,6 +344,36 @@
         },
 
         {
+            "Name": "xyz.openbmc_project.Logging.Error.Default",
+            "Subsystem": "other_na",
+
+            "SRC":
+            {
+                "ReasonCode": "0x2004",
+                "Words6To9":
+                {
+                }
+            },
+
+            "Documentation":
+            {
+                "Description": "This entry is used when no other matching entry is found",
+                "Message": "Unknown (Original event not in message registry)",
+                "Notes": [
+                    "This is used when the actual error name isn't found in ",
+                    "the registry.  The original error name will be stored ",
+                    "in the UserData section that contains the AdditionalData ",
+                    "properties using the key ERROR_NAME.",
+                    "This error may contain callouts if the creator passed ",
+                    "them in.",
+                    "The severity is set by the creator.",
+                    "If this error is seen, then a code change needs to be ",
+                    "made to add the missing error entry to this registry."
+                ]
+            }
+        },
+
+        {
             "Name": "org.open_power.PHAL.Error.Boot",
             "Subsystem": "cec_hardware",
             "Severity": "unrecoverable",