Improve Tor startup diagnostics on Windows

This commit is contained in:
Krystie
2026-04-09 01:02:42 -07:00
parent 334b525fe6
commit 56351ffb89
5 changed files with 26 additions and 2 deletions
+4 -1
View File
@@ -1223,7 +1223,10 @@ bool AppInit2()
fUseUPnP = false;
#endif
} else {
return InitError(_("Tor failed to start. Triangles requires Tor to operate."));
std::string torError = CTorEmbedded::GetInstance()->GetLastError();
if (torError.empty())
torError = "No detailed Tor startup error was recorded.";
return InitError(strprintf(_("Tor failed to start. Triangles requires Tor to operate.\n\nDetails: %s"), torError));
}
// Initialize Tor V3 identity (Ed25519 keys, onion address)