print error when throwing exception in auth

This commit is contained in:
Lion Kortlepel 2024-02-09 14:49:32 +01:00 committed by Lion
parent 5db1b48e07
commit b2e5b8d2d3

View File

@ -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(){