Skip to content

Commit c4b0b06

Browse files
committed
Even better missing session id exception
1 parent 726d8f4 commit c4b0b06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/webdriver/WebDriver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ protected void StartSession(ICapabilities capabilities)
679679
ReturnedCapabilities returnedCapabilities = new ReturnedCapabilities(rawCapabilities);
680680
this.capabilities = returnedCapabilities;
681681

682-
string sessionId = response.SessionId ?? throw new WebDriverException("The remote end did not respond with ID of a session when it was required.");
682+
string sessionId = response.SessionId ?? throw new WebDriverException($"The remote end did not respond with ID of a session when it was required. {response.Value}");
683683
this.SessionId = new SessionId(sessionId);
684684
}
685685

0 commit comments

Comments
 (0)