浏览代码

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)
     {