Jelajahi Sumber

HPCC-23995 Fix build break due to MakeStringException format specifier

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexisrisk.com>
Anthony Fishbeck 5 tahun lalu
induk
melakukan
a9917cd5b9
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      esp/esdllib/esdl_script.cpp

+ 1 - 1
esp/esdllib/esdl_script.cpp

@@ -677,7 +677,7 @@ public:
             attpath.append(':').append(prefix);
         const char *uri = tree.queryProp(attpath.str());
         if (!uri || !streq(uri, "urn:hpcc:esdl:script"))
-            throw MakeStringException(ESDL_SCRIPT_Error, "Undeclared script xmlns prefix %s", prefix);
+            throw MakeStringException(ESDL_SCRIPT_Error, "Undeclared script xmlns prefix %s", isEmptyString(prefix) ? "<default>" : prefix);
     }
     CEsdlCustomTransform(IPropertyTree &tree, const char *ns_prefix) : m_prefix(ns_prefix)
     {