libpldmresponder: PDR: check config dir

Gracefully exist if PDR config directory doesn't exist.

Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Change-Id: Iee4210469f275f574fc9c9b8da183003497bfb2d
diff --git a/libpldmresponder/platform.cpp b/libpldmresponder/platform.cpp
index af89a94..88ddcf8 100644
--- a/libpldmresponder/platform.cpp
+++ b/libpldmresponder/platform.cpp
@@ -67,6 +67,11 @@
 
 void Handler::generate(const std::string& dir, Repo& repo)
 {
+    if (!fs::exists(dir))
+    {
+        return;
+    }
+
     // A map of PDR type to a lambda that handles creation of that PDR type.
     // The lambda essentially would parse the platform specific PDR JSONs to
     // generate the PDR structures. This function iterates through the map to