forked from mia/Aegisub
Fix r4383: trunk doesn't use wxString for exceptions anymore.
Originally committed to SVN as r4393.
This commit is contained in:
parent
badee30d17
commit
002f284bea
1 changed files with 1 additions and 1 deletions
|
@ -344,7 +344,7 @@ void AegisubVersionCheckerThread::DoCheck()
|
||||||
|
|
||||||
std::auto_ptr<wxInputStream> stream(http.GetInputStream(path));
|
std::auto_ptr<wxInputStream> stream(http.GetInputStream(path));
|
||||||
if (stream.get() == 0) // check for null-pointer
|
if (stream.get() == 0) // check for null-pointer
|
||||||
throw VersionCheckError(_("Could not connect to updates server."));
|
throw VersionCheckError("Could not connect to updates server.");
|
||||||
|
|
||||||
if (http.GetResponse() < 200 || http.GetResponse() >= 300) {
|
if (http.GetResponse() < 200 || http.GetResponse() >= 300) {
|
||||||
const std::string str_err = STD_STR(wxString::Format(_("HTTP request failed, got HTTP response %d."), http.GetResponse()));
|
const std::string str_err = STD_STR(wxString::Format(_("HTTP request failed, got HTTP response %d."), http.GetResponse()));
|
||||||
|
|
Loading…
Reference in a new issue