commit 3b71ec5410501580708d34f7793f82fcc77377d5 parent 01ba8dfc34972e77074555f7c950fd948e44b2f5 Author: Dan Stillman <dstillman@zotero.org> Date: Thu, 21 Jul 2016 13:15:33 -0400 Throw "Error", not "Exception", in merge.xml Diffstat:
| M | chrome/content/zotero/bindings/merge.xml | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/bindings/merge.xml b/chrome/content/zotero/bindings/merge.xml @@ -71,7 +71,7 @@ break; default: - throw new Exception(`Unsupported merge object type '${type}'`); + throw new Error(`Unsupported merge object type '${type}'`); } this._type = val; @@ -98,7 +98,7 @@ <body> <![CDATA[ if (this._data.left.deleted && this._data.right.deleted) { - throw new Exception("'left' and 'right' cannot both be deleted"); + throw new Error("'left' and 'right' cannot both be deleted"); } // Check for note or attachment