diff options
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/db/Pad.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/node/db/Pad.js b/src/node/db/Pad.js index 83e15e6d..5d26f470 100644 --- a/src/node/db/Pad.js +++ b/src/node/db/Pad.js @@ -188,7 +188,12 @@ Pad.prototype.getInternalRevisionAText = function getInternalRevisionAText(targe db.getSub("pad:"+_this.id+":revs:"+keyRev, ["meta", "atext"], function(err, _atext) { if(ERR(err, callback)) return; - atext = Changeset.cloneAText(_atext); + try { + atext = Changeset.cloneAText(_atext); + } catch (e) { + return callback(e); + } + callback(); }); }, |