From 02431a6108f13cb66bc3a021de77cc5e2a3306d4 Mon Sep 17 00:00:00 2001 From: Philipp Kursawe Date: Fri, 22 Mar 2013 10:37:25 +0100 Subject: [PATCH] Output the error message to the debugger, since fucking WinRT COMException refuses to print the message to the debugger --- SQLite3Component/Common.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SQLite3Component/Common.cpp b/SQLite3Component/Common.cpp index 52f98ac..d8de641 100644 --- a/SQLite3Component/Common.cpp +++ b/SQLite3Component/Common.cpp @@ -34,6 +34,8 @@ namespace SQLite3 { hresult = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, resultCode); hresult |= 0x20000000; // Set "customer-defined" bit } + OutputDebugStringW(message->Data()); + OutputDebugStringW(L"\n"); throw ref new Platform::COMException(hresult, message); }