Skip to content

Commit 782890f

Browse files
authored
Returning errors (#191)
1 parent 2c72cd9 commit 782890f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/WebSocket/WinRT/winrt_websocket.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ try
233233
catch (Platform::Exception^ e)
234234
{
235235
HC_TRACE_ERROR(WEBSOCKET, "Websocket [ID %llu]: ConnectAsync failed = 0x%0.8x", websocketTask->m_websocketHandle->id, e->HResult);
236+
return e->HResult;
236237
}
237238

238239
return E_PENDING;
@@ -403,6 +404,7 @@ try
403404
catch (Platform::Exception^ e)
404405
{
405406
HC_TRACE_ERROR(WEBSOCKET, "Websocket [ID %llu]: Send failed = 0x%0.8x", websocketTask->m_websocketHandle->id, e->HResult);
407+
return e->HResult;
406408
}
407409

408410
return E_PENDING;

0 commit comments

Comments
 (0)