SidneyNemzer / elm-port-helper

Helps you set up Elm's ports (on the JavaScript side)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve error message when an invalid root is passed for a schema

SidneyNemzer opened this issue · comments

throw new TypeError('Expected object but got ' + typeof value)

Not only is the message unclear, it references the value, which actually isn't the problem -- the problem is the schemaDescription.root!