Skip to content

Commit

Permalink
Fixed typos in error messages
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Schlinkert <[email protected]>
  • Loading branch information
jonschlinkert authored Nov 18, 2024
1 parent d74bbc0 commit 9513ad4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ class RefResolver {
if (sourceSchema[key] !== undefined) {
if (deepEqual(sourceSchema[key], targetSchema[key])) continue
throw new Error(
`Cannot resolve ref "${ref.ref}". Property "${key}" is already exist in schema "${ref.sourceSchemaId}".`
`Cannot resolve ref "${ref.ref}". Property "${key}" already exists in schema "${ref.sourceSchemaId}".`
)
}
sourceSchema[key] = targetSchema[key]
Expand All @@ -250,7 +250,7 @@ class RefResolver {
#insertSchemaByAnchor (schema, schemaId, anchor) {
const { anchors } = this.#schemas[schemaId]
if (anchors[anchor] !== undefined) {
throw new Error(`There is already another anchor "${anchor}" in a schema "${schemaId}".`)
throw new Error(`There is already another anchor "${anchor}" in schema "${schemaId}".`)
}
anchors[anchor] = schema
}
Expand Down

0 comments on commit 9513ad4

Please sign in to comment.