From 782890f0f2104d22962b7a8948aff295da2a306f Mon Sep 17 00:00:00 2001 From: Jason Sandlin Date: Mon, 11 Jun 2018 14:48:32 -0700 Subject: [PATCH] Returning errors (#191) --- Source/WebSocket/WinRT/winrt_websocket.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/WebSocket/WinRT/winrt_websocket.cpp b/Source/WebSocket/WinRT/winrt_websocket.cpp index f06cb82f..12684b9e 100644 --- a/Source/WebSocket/WinRT/winrt_websocket.cpp +++ b/Source/WebSocket/WinRT/winrt_websocket.cpp @@ -233,6 +233,7 @@ try catch (Platform::Exception^ e) { HC_TRACE_ERROR(WEBSOCKET, "Websocket [ID %llu]: ConnectAsync failed = 0x%0.8x", websocketTask->m_websocketHandle->id, e->HResult); + return e->HResult; } return E_PENDING; @@ -403,6 +404,7 @@ try catch (Platform::Exception^ e) { HC_TRACE_ERROR(WEBSOCKET, "Websocket [ID %llu]: Send failed = 0x%0.8x", websocketTask->m_websocketHandle->id, e->HResult); + return e->HResult; } return E_PENDING;