Skip to content

Commit 061499b

Browse files
committed
Addressed error code issues
1 parent ff8c3f6 commit 061499b

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
""
2+
{
3+
"FILE_VERSION" = "9237"
4+
"ENLISTMENT_CHOICE" = "NEVER"
5+
"PROJECT_FILE_RELATIVE_PATH" = ""
6+
"NUMBER_OF_EXCLUDED_FILES" = "0"
7+
"ORIGINAL_PROJECT_FILE_PATH" = ""
8+
"NUMBER_OF_NESTED_PROJECTS" = "0"
9+
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROJECT"
10+
}

Release/src/websockets/client/ws_client.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class ws_desktop_client : public _websocket_client_impl, public std::enable_shar
171171
m_client.close(m_con, static_cast<websocketpp::close::status::value>(status), utility::conversions::to_utf8string(reason), ec);
172172
if (ec.value() != 0)
173173
{
174-
websocket_exception wx(utility::conversions::to_string_t(ec.message()));
174+
websocket_exception wx(ec.value());
175175
return pplx::task_from_exception<void>(wx);
176176
}
177177
}
@@ -274,7 +274,7 @@ class ws_desktop_client : public _websocket_client_impl, public std::enable_shar
274274
m_con = con;
275275
if (ec.value() != 0)
276276
{
277-
websocket_exception wx(utility::conversions::to_string_t(ec.message()));
277+
websocket_exception wx(ec.value());
278278
return pplx::task_from_exception<void>(wx);
279279
}
280280

@@ -441,7 +441,7 @@ class ws_desktop_client : public _websocket_client_impl, public std::enable_shar
441441
auto ec = previousTask.get();
442442
if (ec.value() != 0)
443443
{
444-
websocket_exception wx(utility::conversions::to_string_t(ec.message()));
444+
websocket_exception wx(ec.value());
445445
eptr = std::make_exception_ptr(wx);
446446
}
447447
}
@@ -451,7 +451,7 @@ class ws_desktop_client : public _websocket_client_impl, public std::enable_shar
451451
}
452452
catch (...)
453453
{
454-
eptr = std::make_exception_ptr(websocket_exception(_XPLATSTR("Failed to send data over the websocket connection.")));
454+
eptr = std::current_exception();
455455
}
456456

457457
if (acquired)

0 commit comments

Comments
 (0)