model_server/DIS_cm/src/ui_cm_put.cxx
//Print the reason for the failure using dis_message.
Print the reason for the failure using dis_message.
Print the reason for the failure using dis_message .
int ui_cm_put::GetFailureType(const symbolArr& file_syms,
				genString& failureType) 
{
	int status = file_syms.size();
	if (status) {
		symbolPtr sym = file_syms[0];
		if (LockedFailedModules.includes(sym) ) {
			failureType.printf(
				"%s is locked by another user", 
				sym.get_name() );
		} else if (MergeFailedModules.includes(sym) ) {
			failureType.printf(
				"%s has been modified and needs to be merged", 
				sym.get_name() );
		} else {
			failureType.printf(
				"%s encountered an internal error during check in", 
				sym.get_name() );
		}
	}
	return(status);
}
int ui_cm_put :: GetFailureType ( const symbolArr & file_syms , genString & failureType ) { int status = file_syms . size ( ) ; if ( status ) { symbolPtr sym = file_syms [ 0 ] ; if ( LockedFailedModules . includes ( sym ) ) { failureType . printf ( " " , sym . get_name ( ) ) ; } else if ( MergeFailedModules . includes ( sym ) ) { failureType . printf ( " " , sym . get_name ( ) ) ; } else { failureType . printf ( " " , sym . get_name ( ) ) ; } } return ( status ) ; }
Print the reason for the failure using dis_message.
Print the reason for the failure using dis_message .
// We will return info only on the first seleted symbol.