Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jaclarke committed Dec 11, 2024
1 parent bbd00a5 commit f2f3f51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/driver/src/codecs/postgis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class PostgisBox3dCodec extends ScalarCodec implements ICodec {
encode(buf: WriteBuffer, object: any): void {
if (!(object instanceof Box3D)) {
throw new InvalidArgumentError(
`a Box2D object was expected, got "${object}"`,
`a Box3D object was expected, got "${object}"`,
);
}

Expand Down Expand Up @@ -148,7 +148,7 @@ export class PostgisBox3dCodec extends ScalarCodec implements ICodec {
return new Box3D([min.x, min.y, min.z ?? 0], [max.x, max.y, max.z ?? 0]);
}

throw new InternalClientError(`failed to decode ext::postgis::box2d type`);
throw new InternalClientError(`failed to decode ext::postgis::box3d type`);
}
}

Expand Down

0 comments on commit f2f3f51

Please sign in to comment.