Windows launcher: more diagnostics for JVM creation failures

This commit is contained in:
Dmitry Jemerov
2013-02-14 20:55:38 +01:00
parent e2bb99dd24
commit b79d26ba9e
@@ -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;