Преглед изворни кода

HPCC-23995 Fix build break due to MakeStringException format specifier

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexisrisk.com>
Anthony Fishbeck пре 5 година
родитељ
комит
a9917cd5b9
1 измењених фајлова са 1 додато и 1 уклоњено
  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)
     {