1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 19:43:06 +01:00

Fix REPL write line on Linux

This commit is contained in:
Ted John
2021-02-13 00:15:27 +00:00
parent 05cb106ee7
commit 3f5698b1e0
15 changed files with 82 additions and 30 deletions

View File

@@ -12,6 +12,7 @@
# include "Http.h"
# include "../Version.h"
# include "../core/Console.hpp"
# include "String.hpp"
# include <cstdio>
@@ -226,7 +227,7 @@ namespace Http
catch ([[maybe_unused]] const std::exception& e)
{
# ifdef DEBUG
std::fprintf(stderr, "HTTP request failed: %s\n", e.what());
Console::Error::WriteLine("HTTP request failed: %s", e.what());
# endif
WinHttpCloseHandle(hSession);
WinHttpCloseHandle(hConnect);