forked from rosebudai/OpenRCT2-Web
Fix REPL write line on Linux
This commit is contained in:
1 parent
05cb106ee7
commit
3f5698b1e0
15 files changed
+82
-30
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user