Opinions on this? What should this JS error message say? https://bugzilla.mozilla.org/show_bug.cgi?id=1614471 …https://twitter.com/really_bz/status/1226977763950759938 …
-
-
Replying to @jensimmons
Love that you're asking the community! Taking a stab... "Hmm, it looks like you're using a function that expects at least one input, but it's not receiving any inputs." Dammit - this is harder than I thought.
1 reply 1 retweet 1 like -
Replying to @solomania @jensimmons
So to be clear, there are two separate pieces here: (1) how to identify _which_ function was mis-called and (2) how to describe the problem with the way it was called. The former is what I am mostly trying to sort out now. The latter is also an interesting problem, of course.
1 reply 1 retweet 2 likes -
Thanks for the clarification Boris. Not to steer you off topic, but the latter is more interesting to me. Given the total # of people who will see this error msg, I wonder if they'd be best served leading with piece (1) or piece (2)? My gut says piece (2) will be more helpful.
1 reply 0 retweets 0 likes -
Replying to @solomania @jensimmons
Right, the order is also an interesting question, and I've thought of putting (1) after (2); it requires some auditing of all the verbiage used in (2) in the thousands of error messages in the browser...
1 reply 0 retweets 0 likes -
At the moment I am also trying to make sure both (1) and (2) are present; right now Gecko has some cases where (2) is there but (1) is not.
1 reply 0 retweets 0 likes -
Fascinating, and I imagine extremely complex. I wonder if there's any existing research into the developer's mindset when they see JS errors in the console. Maybe
@dan_abramov would know?1 reply 0 retweets 0 likes
I would love to have some of that!
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.