From b79d26ba9eb46c2ca60c8a86eb4052bd13f4a9bc Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 14 Feb 2013 20:35:54 +0100 Subject: [PATCH] Windows launcher: more diagnostics for JVM creation failures --- native/WinLauncher/WinLauncher/WinLauncher.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/native/WinLauncher/WinLauncher/WinLauncher.cpp b/native/WinLauncher/WinLauncher/WinLauncher.cpp index c10a04f29805..bd801390ec09 100644 --- a/native/WinLauncher/WinLauncher/WinLauncher.cpp +++ b/native/WinLauncher/WinLauncher/WinLauncher.cpp @@ -410,7 +410,9 @@ bool CreateJVM() if (result != JNI_OK) { - MessageBox(NULL, _T("Failed to create JVM"), _T("Error launching IntelliJ Platform"), MB_OK); + TCHAR buf[_MAX_PATH]; + _stprintf_s(buf, _T("Failed to create JVM: error code %d"), result); + MessageBox(NULL, buf, _T("Error launching IntelliJ Platform"), MB_OK); } return result == JNI_OK;