Easysync: Throw an error if an unknown attrib is referneced
This commit is contained in:
parent
d86d99bc16
commit
ccf4683558
1 changed files with 1 additions and 0 deletions
|
@ -1504,6 +1504,7 @@ exports.moveOpsToNewPool = function (cs, oldPool, newPool) {
|
|||
return upToDollar.replace(/\*([0-9a-z]+)/g, function (_, a) {
|
||||
var oldNum = exports.parseNum(a);
|
||||
var pair = oldPool.getAttrib(oldNum);
|
||||
if(!pair) exports.error('Can\'t copy unknown attrib (reference attrib string to non-existant pool entry). Inconsistent attrib state!');
|
||||
var newNum = newPool.putAttrib(pair);
|
||||
return '*' + exports.numToString(newNum);
|
||||
}) + fromDollar;
|
||||
|
|
Loading…
Reference in a new issue