mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-06-18 14:40:56 +00:00
print error when throwing exception in auth
This commit is contained in:
@@ -51,6 +51,7 @@ std::string Login(const std::string& fields){
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
info("Attempting to authenticate...");
|
info("Attempting to authenticate...");
|
||||||
|
try {
|
||||||
std::string Buffer = HTTP::Post("https://auth.beammp.com/userlogin", fields);
|
std::string Buffer = HTTP::Post("https://auth.beammp.com/userlogin", fields);
|
||||||
|
|
||||||
if(Buffer == "-1"){
|
if(Buffer == "-1"){
|
||||||
@@ -82,6 +83,9 @@ std::string Login(const std::string& fields){
|
|||||||
return d.dump();
|
return d.dump();
|
||||||
}
|
}
|
||||||
return GetFail("Invalid message parsing!");
|
return GetFail("Invalid message parsing!");
|
||||||
|
} catch (const std::exception& e) {
|
||||||
|
error(e.what());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CheckLocalKey(){
|
void CheckLocalKey(){
|
||||||
|
|||||||
Reference in New Issue
Block a user