Skip to content

Commit

Permalink
Change maximum deep iterations error text.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlehn committed Sep 19, 2023
1 parent f2d0e42 commit ba1af52
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
improve compatibility with other RDF/JS tooling but may cause compatibility
issues with existing code. The previous behavior is historical and may
predate the RDF/JS spec.
- **BREAKING**: Change maximum deep iterations error text.
- Update tooling.
- Update for latest [rdf-canon][] changes: test suite location, README, links,
and identifiers.
Expand Down
2 changes: 1 addition & 1 deletion lib/URDNA2015.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ module.exports = class URDNA2015 {
async hashNDegreeQuads(id, issuer) {
if(this.remainingDeepIterations === 0) {
throw new Error(
`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);
`Maximum deep iterations exceeded (${this.maxDeepIterations}).`);
}
this.remainingDeepIterations--;

Expand Down
2 changes: 1 addition & 1 deletion lib/URDNA2015Sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ module.exports = class URDNA2015Sync {
hashNDegreeQuads(id, issuer) {
if(this.remainingDeepIterations === 0) {
throw new Error(
`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);
`Maximum deep iterations exceeded (${this.maxDeepIterations}).`);
}
this.remainingDeepIterations--;

Expand Down

0 comments on commit ba1af52

Please sign in to comment.