Skip to content

Commit

Permalink
build: Tag asserts (#15481)
Browse files Browse the repository at this point in the history
Tag asserts in preparation for release.
  • Loading branch information
tylerbutler authored May 5, 2023
1 parent af82d51 commit 509aa13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class FieldProxyTarget extends ProxyTarget<FieldAnchor> implements Editab
assert(
this.fieldSchema.kind.identifier === sequence.identifier &&
destinationFieldKindIdentifier === sequence.identifier,
"Both source and destination fields must be sequence fields.",
0x683 /* Both source and destination fields must be sequence fields. */,
);

const destinationFieldProxy =
Expand All @@ -211,7 +211,7 @@ export class FieldProxyTarget extends ProxyTarget<FieldAnchor> implements Editab
: this;
assert(
isFieldProxyTarget(destinationFieldProxy),
"destination field proxy must be a field proxy target",
0x684 /* destination field proxy must be a field proxy target */,
);
assertValidIndex(destinationIndex, destinationFieldProxy, true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1310,5 +1310,7 @@ export const shortCodeMap = {
"0x67f": "Redo is not yet supported during transactions",
"0x680": "new range must not already exist",
"0x681": "count must be positive",
"0x682": "coupleInfo must have nodes to couple"
"0x682": "coupleInfo must have nodes to couple",
"0x683": "Both source and destination fields must be sequence fields.",
"0x684": "destination field proxy must be a field proxy target"
};

0 comments on commit 509aa13

Please sign in to comment.