mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1838152 - Improve error message when sending session.new without capabilities. r=Sasha,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D206966
This commit is contained in:
parent
6776017a56
commit
b8abfd4b0b
@ -1031,7 +1031,10 @@ export function validateCapabilities(capabilities) {
|
||||
*/
|
||||
export function processCapabilities(params) {
|
||||
const { capabilities } = params;
|
||||
lazy.assert.object(capabilities);
|
||||
lazy.assert.object(
|
||||
capabilities,
|
||||
lazy.pprint`Expected "capabilities" to be an object, got ${capabilities}`
|
||||
);
|
||||
|
||||
let {
|
||||
alwaysMatch: requiredCapabilities = {},
|
||||
|
Loading…
Reference in New Issue
Block a user