Display a message with the error when a connection stage fails

This commit is contained in:
Cameron Gutman 2018-03-27 23:14:22 -07:00
parent 5f6120012e
commit 4284394607

View File

@ -11,7 +11,12 @@ void MoonlightInstance::ClStageStarting(int stage) {
}
void MoonlightInstance::ClStageFailed(int stage, long errorCode) {
pp::Var response(std::string("Starting ") + std::string(LiGetStageName(stage)) + std::string("failed"));
pp::Var response(
std::string("DialogMsg: ") +
std::string(LiGetStageName(stage)) +
std::string(" failed (error ") +
std::to_string(errorCode) +
std::string(")"));
g_Instance->PostMessage(response);
}