domino.js
domino.js copied to clipboard
More explicit error messages
Currently when I get a type error, it looks like this:
Uncaught Error: [domino] Property "accounts": Type not valid
I would greatly appreciate something like:
expected: "?(array)" was "?(object)"
Or even the wrapped object like:
Uncaught Error: [domino] Property "accounts": Type not valid (expected: "?(array)" was "?(object)") ▶Object {blabla:...}
(moved and renamed this issue, which is not doc related)
I just encountered another mysterious error:
Uncaught Error: [settings] Property "othersSA": Wrong type error
Thanks, but what's wrong? :8ball:
Hum... I am kind of sure you tried to set the property "othersSA"
with a value that has the wrong type :)
No, seriously, you are right - it would indeed be nice to have the value logged in these cases.
As soon as I can spend some more time on domino, this whole logging issue will be my priority (it will be during October).
Thanks a lot!
2013/9/19 Alexis Jacomy [email protected]
Hum... I am kind of sure you tried to set the property "othersSA" with a value that has the wrong type :) No, seriously, you are right - it would indeed be nice to have the value logged in these cases.
As soon as I can spend some more time on domino, this whole logging issue will be my priority (it will be during October).
— Reply to this email directly or view it on GitHubhttps://github.com/jacomyal/domino.js/issues/19#issuecomment-24736398 .
Grégoire Dubourg 1084 rue de Paris 60520 La Chapelle-en-Serval 06 82 36 45 23 09 53 89 43 54
Interesting for jacomyal/typology#7