pruned new error messages

This commit is contained in:
rdrdrdrd 2021-08-17 23:24:46 -05:00 committed by Aaron van Geffen
parent 0f758b94e1
commit 1cea24c382
4 changed files with 0 additions and 6 deletions

View File

@ -918,7 +918,6 @@ namespace OpenLoco
catch (const std::exception& e)
{
std::fprintf(stderr, "Unable to clean autosaves: %s\n", e.what());
Ui::showMessageBox("Exception", e.what());
}
}
@ -954,7 +953,6 @@ namespace OpenLoco
catch (const std::exception& e)
{
std::fprintf(stderr, "Unable to autosave game: %s\n", e.what());
Ui::showMessageBox("Unable to Autosave:", e.what());
}
}

View File

@ -666,7 +666,6 @@ namespace OpenLoco::S5
std::fprintf(stderr, "Unable to load S5: %s\n", e.what());
_loadErrorCode = 255;
_loadErrorMessage = e.getLocalisedMessage();
Ui::showMessageBox("Unable to Load S5:", e.what());
return false;
}
catch (const std::exception& e)
@ -674,7 +673,6 @@ namespace OpenLoco::S5
std::fprintf(stderr, "Exception: %s\n", e.what());
_loadErrorCode = 255;
_loadErrorMessage = StringIds::null;
Ui::showMessageBox("Exception: ", e.what());
return false;
}
}

View File

@ -115,7 +115,6 @@ namespace OpenLoco::Input
{
png_free(png_ptr, palette);
png_destroy_write_struct(&png_ptr, nullptr);
Ui::showMessageBox("Exception", e.what());
throw;
}

View File

@ -797,7 +797,6 @@ namespace OpenLoco::Ui::Windows::PromptBrowse
catch (const fs::filesystem_error& e)
{
Console::error("Invalid directory or file: %s", e.what());
Ui::showMessageBox("Exception: ", e.what());
}
}
}