Skip to content

Commit

Permalink
fix: Properly traverse explain() in maps
Browse files Browse the repository at this point in the history
  • Loading branch information
prayerslayer committed Jun 6, 2017
1 parent 9e4f97c commit fcf8e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spec/map.js
Expand Up @@ -49,7 +49,7 @@ export class Map extends Spec {
if (hasSpec) {
const spec = specize(hasSpec);
if (!valid(spec, v)) {
return explain(spec, [...path, key], [...via, getName(this)], value);
return explain(spec, [...path, key], [...via, getName(this)], value[key]);
}
}
return null;
Expand Down

0 comments on commit fcf8e3e

Please sign in to comment.