domino.js icon indicating copy to clipboard operation
domino.js copied to clipboard

More explicit error messages

Open ZorGleH opened this issue 11 years ago • 5 comments

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:...}

ZorGleH avatar Apr 30 '13 14:04 ZorGleH

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

jacomyal avatar May 15 '13 07:05 jacomyal

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

ZorGleH avatar Sep 19 '13 12:09 ZorGleH

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

jacomyal avatar Sep 19 '13 12:09 jacomyal

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

ZorGleH avatar Sep 19 '13 13:09 ZorGleH

Interesting for jacomyal/typology#7

Yomguithereal avatar Nov 25 '14 21:11 Yomguithereal