Skip to content

Commit

Permalink
Tweak startup error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed May 9, 2016
1 parent 3dc6a3e commit 83c0636
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/core/ArxGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ bool ArxGame::initialize()

init = initConfig();
if(!init) {
LogCritical << "Failed to initialize the config subsystem.";
LogCritical << "Failed to initialize the config subsystem";
return false;
}

Expand All @@ -239,13 +239,13 @@ bool ArxGame::initialize()

init = initLocalisation();
if(!init) {
LogCritical << "Failed to initialize the localisation subsystem.";
LogCritical << "Failed to initialize the localisation subsystem";
return false;
}

init = initGame();
if(!init) {
LogCritical << "Failed to initialize game.";
LogCritical << "Failed to initialize game";
return false;
}

Expand Down Expand Up @@ -517,7 +517,7 @@ bool ArxGame::initGameData() {

bool init = addPaks();
if(!init) {
LogCritical << "Error loading pak files";
LogCritical << "Failed to initialize the game data";
return false;
}

Expand Down Expand Up @@ -761,7 +761,7 @@ bool ArxGame::initGame()
{
// Check if the game will be able to use the current game directory.
if(!ARX_Changelevel_CurGame_Clear()) {
LogCritical << "Error accessing current game directory.";
LogCritical << "Error accessing current game directory";
return false;
}

Expand Down Expand Up @@ -1032,7 +1032,7 @@ bool ArxGame::addPaks() {

// Construct an informative error message about missing files
oss.str(std::string());
oss << "Could not load required data files.\n";
oss << "Could not load required data files!\n";
oss << "\nSee " << url::help_get_data << " for help.\n";
LogCritical << oss.str();

Expand Down
2 changes: 1 addition & 1 deletion src/core/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ void runGame() {
mainApp->run();
} else {
// Fallback to a generic critical error in case none was set yet...
LogCritical << "Application failed to initialize properly.";
LogCritical << "Initialization failed";
}

if(mainApp) {
Expand Down

0 comments on commit 83c0636

Please sign in to comment.