modify something

This commit is contained in:
Xuewen Wang 2024-02-26 21:17:15 +00:00
parent d08df4a5c0
commit ddb2413910

View file

@ -470,10 +470,13 @@ class UtilityServerStub {
* the name of the addXML specific function
*/
dumpXML(args) {
const xmlDumper = new this.mod.datastore.XMLDumper(this.mod.writer);
if (args.ids === undefined) {
throw new Error('Need an object id to add to XML dumper')
}
const xmlDumper = new this.mod.datastore.XMLDumper(this.mod.writer);
xmlDumper.AddAuxiliaryData(this.mod.writer);
let evalArgs
args.ids.forEach((id) => {
if (isNaN(id)) { evalArgs = '"' + id + '"'; }