core/CoreConfig.cpp
changeset 665 74fa35a4c27c
parent 663 b526b82e256e
child 669 ce01c2eb020c
     1.1 --- a/core/CoreConfig.cpp	Thu Apr 05 05:28:44 2007 +0000
     1.2 +++ b/core/CoreConfig.cpp	Thu Apr 05 05:45:35 2007 +0000
     1.3 @@ -51,7 +51,11 @@
     1.4  
     1.5  		if (err == ConfigResult_Reject)
     1.6  		{
     1.7 -			g_Logger.LogError("Could not set config option \"%s\" to \"%s\" (error: %s)", option, value, error);
     1.8 +			g_RootMenu.ConsolePrint("Could not set config option \"%s\" to \"%s\" (%s)", option, value, error);
     1.9 +		} else if (err == ConfigResult_Ignore) {
    1.10 +			g_RootMenu.ConsolePrint("No such config option \"%s\" exists.", option);
    1.11 +		} else {
    1.12 +			g_RootMenu.ConsolePrint("Config option \"%s\" successfully set to \"%s.\"", option, value);
    1.13  		}
    1.14  
    1.15  		return;
    1.16 @@ -81,7 +85,7 @@
    1.17  	if ((err=g_TextParser.ParseFile_SMC(filePath, this, NULL, NULL))
    1.18  		!= SMCParse_Okay)
    1.19  	{
    1.20 -		/* :TODO: This won't actually log or print anything :( - So fix that somehow */
    1.21 + 		/* :TODO: This won't actually log or print anything :( - So fix that somehow */
    1.22  		const char *error = g_TextParser.GetSMCErrorString(err);
    1.23  		g_Logger.LogFatal("[SM] Error encountered parsing core config file: %s", error ? error : "");
    1.24  	}
    1.25 @@ -95,7 +99,7 @@
    1.26  	if (err == ConfigResult_Reject)
    1.27  	{
    1.28  		/* This is a fatal error */
    1.29 -		g_Logger.LogFatal("%s", error);
    1.30 +		g_Logger.LogFatal("Config error (key: %s) (value: %s) %s", key, value, error);
    1.31  	}
    1.32  
    1.33  	return SMCParse_Continue;