Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepended command names in https error response reports for unknown commands #6321

Merged
merged 1 commit into from Sep 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion javascript/node/selenium-webdriver/lib/http.js
Expand Up @@ -554,7 +554,7 @@ function parseHttpResponse(command, httpResponse) {
// 404 represents an unknown command; anything else > 399 is a generic unknown
// error.
if (httpResponse.status == 404) {
throw new error.UnsupportedOperationError(value);
throw new error.UnsupportedOperationError(command.getName() + ': ' + value);
} else if (httpResponse.status >= 400) {
throw new error.WebDriverError(value);
}
Expand Down