Add Windows-specific warnings if Sunshine is unable to access config or credentials

http::init() failure must be fatal because attempting to start the web servers will crash due to null creds.
This commit is contained in:
Cameron Gutman
2023-05-02 01:06:38 -05:00
parent e8f3dfe32c
commit c706ba4ca2
2 changed files with 44 additions and 15 deletions

View File

@@ -600,7 +600,14 @@ main(int argc, char *argv[]) {
}
if (http::init()) {
BOOST_LOG(error) << "http failed to initialize"sv;
BOOST_LOG(fatal) << "HTTP interface failed to initialize"sv;
#ifdef _WIN32
BOOST_LOG(fatal) << "To relaunch Sunshine successfully, use the shortcut in the Start Menu. Do not run Sunshine.exe manually."sv;
std::this_thread::sleep_for(10s);
#endif
return -1;
}
std::unique_ptr<platf::deinit_t> mDNS;