diff --git a/javascript/node/selenium-webdriver/lib/http.js b/javascript/node/selenium-webdriver/lib/http.js index 86f8fe6c1898e..58bced55ed95d 100644 --- a/javascript/node/selenium-webdriver/lib/http.js +++ b/javascript/node/selenium-webdriver/lib/http.js @@ -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); }