Skip to content

Commit

Permalink
Fix error in state type mismatch error.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdotdesign committed Jul 30, 2018
1 parent 06cc22f commit a32500c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/type_checkers/state.cr
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module Mint

raise StateTypeMismatch, {
"expected" => record,
"name" => node.name.value,
"node" => node.default,
"got" => type,
} unless Comparer.compare(record, type)
Expand Down

0 comments on commit a32500c

Please sign in to comment.