Add a little more context to configuration errors.

This commit is contained in:
jdolan 2013-07-04 20:31:24 -04:00
parent e5b2ced9d1
commit 380a05bbdf
1 changed files with 2 additions and 2 deletions

View File

@ -594,7 +594,7 @@ bool CSynapseServer::DoResolve( CSynapseClient *pClient ){
// the stack didn't change last loop // the stack didn't change last loop
iCurrent++; iCurrent++;
if ( iCurrent == mStack.end() ) { if ( iCurrent == mStack.end() ) {
Syn_Printf( "ERROR: CSynapseServer::Resolve, failed to resolve\n" ); Syn_Printf( "ERROR: CSynapseServer::Resolve, failed to resolve config for %s\n", pClient->GetName() );
DumpStack(); DumpStack();
return false; return false;
} }
@ -658,7 +658,7 @@ void CSynapseServer::DumpStack(){
for ( iCurrent = mStack.begin(); iCurrent != mStack.end(); iCurrent++ ) for ( iCurrent = mStack.begin(); iCurrent != mStack.end(); iCurrent++ )
{ {
APIDescriptor_t*pAPI = *iCurrent; APIDescriptor_t*pAPI = *iCurrent;
Syn_Printf( "interface %s %p '%s' '%s'\n", APITypeName[pAPI->mType], pAPI, pAPI->major_name, pAPI->minor_name ); Syn_Printf( " interface %s %p '%s' '%s'\n", APITypeName[pAPI->mType], pAPI, pAPI->major_name, pAPI->minor_name );
} }
} }