jacomyal / domino.js

[deprecated] A JavaScript cascading controller for fast interactive Web interfaces prototyping.
https://jacomyal.github.io/domino.js
MIT License
54 stars 7 forks source link

More explicit error messages #19

Open ZorGleH opened 11 years ago

ZorGleH commented 11 years ago

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:...}
jacomyal commented 11 years ago

(moved and renamed this issue, which is not doc related)

ZorGleH commented 11 years ago

I just encountered another mysterious error: Uncaught Error: [settings] Property "othersSA": Wrong type error Thanks, but what's wrong? :8ball:

jacomyal commented 11 years ago

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).

ZorGleH commented 11 years ago

Thanks a lot!

2013/9/19 Alexis Jacomy notifications@github.com

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

Yomguithereal commented 9 years ago

Interesting for jacomyal/typology#7