return false;
}
+ QString anErrorMsg;
bool anIsOk = false;
TopoDS_Shell aShell = aCalculation->GetShell();
}
}
} else {
- theErrorMsg = tr( "RESULT_SHAPE_NULL" );
+ anErrorMsg = tr( "RESULT_SHAPE_NULL" );
}
- if ( !anIsOk && theErrorMsg.isEmpty() ) {
+ if ( !anIsOk ) {
theErrorMsg = tr( "EXPORT_FAILED" );
+
+ if( !anErrorMsg.isEmpty() ) {
+ theErrorMsg.prepend( anErrorMsg + "\n" );
+ }
}
return anIsOk;
}
else {
abort();
- QString aMsg = tr( "INPUT_VALID_DATA" );
+ QString aMsg = tr( "EXPORT_FAILED" );
+ /* TODO: improve error processing
if( !anErrorMsg.isEmpty() )
aMsg.prepend( anErrorMsg + "\n" );
+ */
SUIT_MessageBox::critical( module()->getApp()->desktop(),
tr( "EXPORT_STATUS" ),
aMsg );