HYDROGUI_Tool::GetSelectedObject( module() ) );
if ( aCalculation.IsNull() ) {
- theErrorMsg = tr( "EXPORT_FAILED" );
+ theErrorMsg = tr( "NULL_DATA_OBJECT" );
return false;
}
anIsOk = true;
}
}
- } else {
- anErrorMsg = tr( "RESULT_SHAPE_NULL" );
- }
- if ( !anIsOk ) {
- theErrorMsg = tr( "EXPORT_FAILED" );
+ if ( !anIsOk )
+ theErrorMsg = tr( "IMPOSSIBLE_TO_CREATE_GEOM_SHAPE" );
- if( !anErrorMsg.isEmpty() ) {
- theErrorMsg.prepend( anErrorMsg + "\n" );
- }
+ } else {
+ theErrorMsg = tr( "RESULT_SHAPE_NULL" );
}
return anIsOk;
}
else {
abort();
- QString aMsg = tr( "EXPORT_FAILED" );
- /* TODO: improve error processing
- if( !anErrorMsg.isEmpty() )
- aMsg.prepend( anErrorMsg + "\n" );
- */
+
+ if ( anErrorMsg.isEmpty() )
+ anErrorMsg = tr( "EXPORT_DATA_FAILED" );
+
+ anErrorMsg.prepend( tr( "EXPORT_FAILED" ) + "\n" );
+
SUIT_MessageBox::critical( module()->getApp()->desktop(),
tr( "EXPORT_STATUS" ),
- aMsg );
+ anErrorMsg );
}
}
\ No newline at end of file