WebDriver: Print out the entire error when failing to start a session

This commit is contained in:
Andrew Kaster 2023-10-26 21:07:09 -06:00 committed by Andreas Kling
parent 4dbb73b360
commit 0f0c9f910a
Notes: sideshowbarker 2024-07-17 08:43:11 +09:00

View file

@ -139,7 +139,7 @@ Web::WebDriver::Response Client::new_session(Web::WebDriver::Parameters, JsonVal
auto session = make_ref_counted<Session>(session_id, *this, move(options)); auto session = make_ref_counted<Session>(session_id, *this, move(options));
if (auto start_result = session->start(m_callbacks); start_result.is_error()) if (auto start_result = session->start(m_callbacks); start_result.is_error())
return Web::WebDriver::Error::from_code(Web::WebDriver::ErrorCode::SessionNotCreated, DeprecatedString::formatted("Failed to start session: {}", start_result.error().string_literal())); return Web::WebDriver::Error::from_code(Web::WebDriver::ErrorCode::SessionNotCreated, DeprecatedString::formatted("Failed to start session: {}", start_result.error()));
auto& web_content_connection = session->web_content_connection(); auto& web_content_connection = session->web_content_connection();