From 03707315c4e121232e9bba36e2eb4cf09bfe61a5 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 16 Oct 2009 20:34:07 -0400 Subject: [PATCH] Add storage["errors"]. --- common/content/liberator.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/content/liberator.js b/common/content/liberator.js index 6b026f63..3c531434 100644 --- a/common/content/liberator.js +++ b/common/content/liberator.js @@ -1668,6 +1668,12 @@ const liberator = (function () //{{{ if (!(k in obj)) obj[k] = v; } + if (liberator.storeErrors) + { + let errors = storage.newArray("errors", false); + errors.toString = function () [String(v[0]) + "\n" + v[1] for ([k, v] in this)].join("\n\n"); + errors.push([new Date, obj + obj.stack]); + } liberator.dump(obj); liberator.dump(""); }