Skip to content

Commit

Permalink
Prepended command names in https error response reports (#6321)
Browse files Browse the repository at this point in the history
Fixes #6180.
  • Loading branch information
Josh Goldberg authored and jleyba committed Sep 27, 2018
1 parent eb1d743 commit bc10b67
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit bc10b67

Please sign in to comment.