One more quick poll: given an exception about not enough args to `document.querySelector`, should the "Learn More" link in the console point to <https://developer.mozilla.org/docs/Web/JavaScript/Reference/Errors/More_arguments_needed …> or to <https://developer.mozilla.org/docs/Web/API/Document/querySelector …>? My personal preference is for the latter, fwiw.
-
Show this thread
-
Replying to @really_bz @bz_moz
"not enough args" seems fairly self explanatory, so the latter should be more useful.
1 reply 0 retweets 0 likes -
Replying to @heycam
That's sort of where I was. If the error includes which function was being called, docs for that function seem much more useful than docs for the sort of problem it had (if we have the latter), because all those problems that are common to many functions are pretty generic...
1 reply 0 retweets 0 likes -
Replying to @really_bz @heycam
Though I guess if the error is about "http://Foo.bar : arg 3 is not iterable" or some such, it's not clear whether docs for http://Foo.bar or docs for "is not iterable" are more useful...
1 reply 0 retweets 0 likes -
Replying to @really_bz @bz_moz
Not possible to link both, is it? <a href=...>http://Foo.bar </a>: arg 3 <a href=...>is not iterable</a> or something? Not sure how rigidly structured our current console messages are.
1 reply 0 retweets 1 like -
Replying to @heycam
The current thing is a "Learn More" link added after the message. So not so easy to link both without more surgery. But yes, if I could just link parts of the message itself, that is what I would want to do, absolutely.
1 reply 0 retweets 1 like -
Having both error and API linked would be best. Console has a few more tricks up its sleeve to create richer messages and we should make use of it here (and elsewhere). Other examples: Link URLs to the Network panel, element references to Inspector, etc.
1 reply 0 retweets 1 like
Ok. What is the best path to making this happen?
-
-
We'll pull the right people into https://github.com/firefox-devtools/ux/issues/113 … to finalize the design and discuss implementation.
0 replies 0 retweets 1 likeThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.