Throw "Error", not "Exception", in merge.xml
This commit is contained in:
parent
01ba8dfc34
commit
3b71ec5410
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue