Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
fix: "resolver exists" error message typo
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
  • Loading branch information
olizilla authored and vmx committed May 28, 2018
1 parent 0ffd30b commit d3d78e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class IPLDResolver {
// Adds support for an IPLD format
this.support.add = (multicodec, resolver, util) => {
if (this.resolvers[multicodec]) {
throw new Error(multicodec + 'already supported')
throw new Error('Resolver already exists for codec "' + multicodec + '"')
}

this.resolvers[multicodec] = {
Expand Down

0 comments on commit d3d78e0

Please sign in to comment.