Rearranged the debug output

This commit is contained in:
Kayne Ruse
2014-07-02 21:59:26 +10:00
parent d5520e83c6
commit bac493c96b
4 changed files with 59 additions and 16 deletions
+1 -5
View File
@@ -21,15 +21,12 @@
*/
#include "server_application.hpp"
#include "SDL/SDL.h"
#include <stdexcept>
#include <iostream>
using namespace std;
int main(int argc, char** argv) {
cout << "Beginning server" << endl;
try {
ServerApplication app;
app.Init(argc, argv);
@@ -37,9 +34,8 @@ int main(int argc, char** argv) {
app.Quit();
}
catch(exception& e) {
cerr << "Fatal error: " << e.what() << endl;
cerr << "Fatal exception thrown: " << e.what() << endl;
return 1;
}
cout << "Clean exit" << endl;
return 0;
}