1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-03 18:07:53 +01:00

Fix Linux

This commit is contained in:
Ted John
2018-06-01 21:08:40 +01:00
parent 9e14b838de
commit ae81af7965
3 changed files with 6 additions and 5 deletions

View File

@@ -115,7 +115,7 @@ bool NetworkKey::SavePrivate(IStream * stream)
{
if (_key == nullptr)
{
throw std::exception("No key loaded");
throw std::runtime_error("No key loaded");
}
auto pem = _key->GetPrivate();
stream->Write(pem.data(), pem.size());
@@ -134,7 +134,7 @@ bool NetworkKey::SavePublic(IStream * stream)
{
if (_key == nullptr)
{
throw std::exception("No key loaded");
throw std::runtime_error("No key loaded");
}
auto pem = _key->GetPrivate();
stream->Write(pem.data(), pem.size());
@@ -151,7 +151,7 @@ std::string NetworkKey::PublicKeyString()
{
if (_key == nullptr)
{
throw std::exception("No key loaded");
throw std::runtime_error("No key loaded");
}
return _key->GetPublic();
}