Skip to content

Commit

Permalink
Get an error if xal login fails to open
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHX committed Nov 27, 2020
1 parent b070c60 commit eebb7c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xal_webview_qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <array>
#include <memory>
#include <stdexcept>
#include <game_window_manager.h>
#include "util.h"

std::string XalWebViewQt::findWebView() {
Expand Down Expand Up @@ -35,5 +36,8 @@ std::string XalWebViewQt::show(std::string starturl, std::string endurlprefix) {
}
auto result = exec_get_stdout(("\"" + webview_path + "\"" + " \"" + starturl + "\" \"" + endurlprefix + "\"").c_str());
trim(result);
if (result.rfind(endurlprefix, 0) != 0) {
GameWindowManager::getManager()->getErrorHandler()->onError("XalWebViewQt", "Failed to open Xboxlive login Window. Please look into the gamelog for more Information");
}
return result;
}

0 comments on commit eebb7c8

Please sign in to comment.