Commit d31f291d authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Add debug output for thrown exception

parent b9952db3
......@@ -11,6 +11,7 @@
// ITA includes
#include <ITAException.h>
#include "ITADebug.h"
......@@ -148,14 +149,16 @@ namespace ITA
if ( pResult->vcspResult.size ( ) != 1 )
{
ITA_EXCEPT_INVALID_PARAMETER ( "Expected simulation result vector with only one result." )
DEBUG_PRINTF ( "[Worker ]\t Expected one Result\n" );
ITA_EXCEPT_INVALID_PARAMETER ( "Expected simulation result vector with only one result.\n" )
}
const auto& soundPath = pResult->vcspResult.front ( );
if ( soundPath->bEmpty == true )
{
ITA_EXCEPT_INVALID_PARAMETER ( "Result is empty." );
DEBUG_PRINTF ( "[Worker ]\t Result Is Empty\n" );
ITA_EXCEPT_INVALID_PARAMETER ( "Result is empty.\n" );
}
if ( soundPath->psfResult->GetNumChannels ( ) != soundPath->iNumChannels )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment