Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
NSeydoux committed Dec 12, 2024
1 parent d6197f9 commit 26cb202
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ function deserializeFields<T>(
if (result === undefined) {
// FIXME use inrupt error library
throw new Error(
`Error deserializing value ${object} for predicate ${field.href} as type ${type}.`,
`Failed to deserialize value ${object.value} for predicate ${field.href} as type ${type}.`,
);
}
return result;
Expand Down
2 changes: 1 addition & 1 deletion src/type/CustomField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const toJson = (
if (!["string", "number", "boolean"].includes(typeof field.value)) {
// FIXME use inrupt error library
throw new Error(
`All custom fields values must be literals, found ${field.value} (or type ${typeof field.value})`,
`All custom fields values must be literals, found ${JSON.stringify(field.value)} (of type ${typeof field.value})`,
);
}
return { [`${field.key.toString()}`]: field.value };
Expand Down

0 comments on commit 26cb202

Please sign in to comment.