Added some code to help figure out errors.

This commit is contained in:
Charles Lohr
2004-09-06 18:20:16 +00:00
parent d01e654507
commit bc628082ba
5 changed files with 19 additions and 4 deletions
+7
View File
@@ -36,7 +36,14 @@ bool StepManiaLanServer::ServerStart() {
statsTime = time(NULL);
return true;
}
else
lastError = "Failed to make socket listen.";
else
lastError = "Failed to bind socket";
else
lastError = "Failed to create socket";
lastErrorCode = server.lastCode;
//Hopefully we will not get here. If we did, something went wrong above.
return false;
}