core/DebugReporter.cpp
changeset 1036 2a073d5b3454
parent 653 ef60870067ff
child 1231 17badaf66ce4
     1.1 --- a/core/DebugReporter.cpp	Tue Jul 03 20:22:39 2007 +0000
     1.2 +++ b/core/DebugReporter.cpp	Tue Jul 03 20:46:17 2007 +0000
     1.3 @@ -31,8 +31,7 @@
     1.4  
     1.5  	if (n_err != SP_ERROR_NATIVE)
     1.6  	{
     1.7 -		g_Logger.LogError("[SM] Plugin \"%s\" encountered error %d: %s",
     1.8 -			plname,
     1.9 +		g_Logger.LogError("[SM] Plugin encountered error %d: %s",
    1.10  			n_err,
    1.11  			error->GetErrorString());
    1.12  	}
    1.13 @@ -50,7 +49,7 @@
    1.14  
    1.15  	if (!error->DebugInfoAvailable())
    1.16  	{
    1.17 -		g_Logger.LogError("[SM] Debug mode is not enabled for this plugin.");
    1.18 +		g_Logger.LogError("[SM] Debug mode is not enabled for \"%s\"", plname);
    1.19  		g_Logger.LogError("[SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug %d on",
    1.20  			_GetPluginIndex(ctx));
    1.21  		return;