And to be clear, this might apply to a wider range of errors than "not enough args".... See a list at https://searchfox.org/mozilla-central/rev/a4be2fbe9bd4f405c91cc16e4e3a80400f5a9301/devtools/server/actors/errordocs.js#18-94 …
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 threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
"not enough args" seems fairly self explanatory, so the latter should be more useful.
-
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...
- 6 more replies
New conversation -
-
-
The latter is a more useful link, I think.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
For sure the latter.
Thanks. 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.