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