Explorar o código

HPCC-23995 Fix build break due to MakeStringException format specifier

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexisrisk.com>
Anthony Fishbeck %!s(int64=5) %!d(string=hai) anos
pai
achega
a9917cd5b9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
     {