core/CConVarManager.cpp
changeset 469 e9a53be35abd
parent 466 a039a324635b
child 472 3c7219ce3aa5
     1.1 --- a/core/CConVarManager.cpp	Mon Feb 12 05:43:14 2007 +0000
     1.2 +++ b/core/CConVarManager.cpp	Mon Feb 12 05:46:00 2007 +0000
     1.3 @@ -259,7 +259,7 @@
     1.4  	// This shouldn't happen...
     1.5  	if (func == NULL)
     1.6  	{
     1.7 -		pContext->ThrowNativeError("Invalid function: %d", funcid);
     1.8 +		pContext->ThrowNativeError("Invalid function specified");
     1.9  		return;
    1.10  	}
    1.11  
    1.12 @@ -302,7 +302,7 @@
    1.13  	// This shouldn't happen...
    1.14  	if (func == NULL)
    1.15  	{
    1.16 -		pContext->ThrowNativeError("Invalid function: %d", funcid);
    1.17 +		pContext->ThrowNativeError("Invalid function specified");
    1.18  		return;
    1.19  	}
    1.20  
    1.21 @@ -315,14 +315,14 @@
    1.22  		// If the forward doesn't exist, we can't unhook anything
    1.23  		if (fwd == NULL)
    1.24  		{
    1.25 -			pContext->ThrowNativeError("Convar \"%s\" has no active hook.", cvar->GetName());
    1.26 +			pContext->ThrowNativeError("Convar \"%s\" has no active hook", cvar->GetName());
    1.27  			return;
    1.28  		}
    1.29  
    1.30  		// Remove the function from the forward's list
    1.31  		if (!fwd->RemoveFunction(func))
    1.32  		{
    1.33 -			pContext->ThrowNativeError("Function %d is not a valid hook callback for convar \"%s\"", funcid, cvar->GetName());
    1.34 +			pContext->ThrowNativeError("Invalid hook callback specified for convar \"%s\"", cvar->GetName());
    1.35  			return;
    1.36  		}
    1.37  
    1.38 @@ -362,4 +362,3 @@
    1.39  	fwd->PushString(oldValue);
    1.40  	fwd->Execute(NULL);
    1.41  }
    1.42 -