mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
print revision numbers - not changesets - in warn-log
This commit is contained in:
parent
683c9dfb7c
commit
0f82cd8711
2 changed files with 3 additions and 2 deletions
|
@ -1635,7 +1635,8 @@ function composePadChangesets(padId, startNum, endNum, callback)
|
||||||
changeset = Changeset.compose(changeset, cs, pool);
|
changeset = Changeset.compose(changeset, cs, pool);
|
||||||
}
|
}
|
||||||
} catch(e){
|
} catch(e){
|
||||||
console.warn("failed to compose cs in pad:",padId);
|
// r-1 indicates the rev that was build starting with startNum, applying startNum+1, +2, +3
|
||||||
|
console.warn("failed to compose cs in pad:",padId," startrev:",startNum," current rev:",r);
|
||||||
return callback(e);
|
return callback(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1318,7 +1318,7 @@ exports.compose = function (cs1, cs2, pool) {
|
||||||
var unpacked2 = exports.unpack(cs2);
|
var unpacked2 = exports.unpack(cs2);
|
||||||
var len1 = unpacked1.oldLen;
|
var len1 = unpacked1.oldLen;
|
||||||
var len2 = unpacked1.newLen;
|
var len2 = unpacked1.newLen;
|
||||||
exports.assert(len2 == unpacked2.oldLen, "mismatched composition of two changesets - cs1:",cs1," and cs2:",cs2);
|
exports.assert(len2 == unpacked2.oldLen, "mismatched composition of two changesets");
|
||||||
var len3 = unpacked2.newLen;
|
var len3 = unpacked2.newLen;
|
||||||
var bankIter1 = exports.stringIterator(unpacked1.charBank);
|
var bankIter1 = exports.stringIterator(unpacked1.charBank);
|
||||||
var bankIter2 = exports.stringIterator(unpacked2.charBank);
|
var bankIter2 = exports.stringIterator(unpacked2.charBank);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue