Skip to content

Commit

Permalink
fix(types): fixed issues based on peer review
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Jan 26, 2016
1 parent b2416a0 commit 2b00efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/types.js
Expand Up @@ -228,7 +228,7 @@ function arrayDecoder(width, buffer, codec) {
*/
function mapBuilder(map, bufb, codec, width) {
if (typeof map !== 'object') {
throw new errors.EncodingError('Unsure how to encode non-object as array');
throw new errors.EncodingError('Unsure how to encode non-object as map');
}

if (Array.isArray(map)) {
Expand Down

0 comments on commit 2b00efc

Please sign in to comment.