Skip to content

Commit

Permalink
fix: more percise error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kwikwag committed Dec 17, 2023
1 parent e5eb8c4 commit cca9547
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lib/toolbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ const __setWebCrypto = async () => {
webcrypto = self.crypto;
return;
}
throw new Error("WebCrypto implementation not available. " +
"Install optional dependecies to include @peculiar/webcrypto or " +
"update your Node.js (later than 16).");
throw new Error("Environment is neither Node nor WebCrypto-enabled " +
"browser; no crypto support. If running on an older browser, consider " +
"using a WebCrypto polyfill.");
};
let ready = __setWebCrypto();

Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cca9547

Please sign in to comment.