Skip to content

Commit

Permalink
Merge pull request #105 from IkeHunter/master
Browse files Browse the repository at this point in the history
Descriptive error message when DB version is 0
  • Loading branch information
dumbmatter authored Aug 19, 2024
2 parents ab0bc47 + f1fd4bf commit 57465fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FDBFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ class FDBFactory {
version = enforceRange(version, "MAX_SAFE_INTEGER");
}
if (version === 0) {
throw new TypeError();
throw new TypeError("Database version cannot be 0");
}

const request = new FDBOpenDBRequest();
Expand Down

0 comments on commit 57465fd

Please sign in to comment.