Skip to content

Commit

Permalink
Clarify 'compressed nor uncompressed' error message
Browse files Browse the repository at this point in the history
  • Loading branch information
petertodd committed Sep 8, 2014
1 parent 93193c8 commit 8e44f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ bool IsCanonicalPubKey(const valtype &vchPubKey, unsigned int flags) {
if (vchPubKey.size() != 33)
return error("Non-canonical public key: invalid length for compressed key");
} else {
return error("Non-canonical public key: compressed nor uncompressed");
return error("Non-canonical public key: neither compressed nor uncompressed");
}
return true;
}
Expand Down

0 comments on commit 8e44f2e

Please sign in to comment.