function str = getTargetSuccessStatus(h,target)

% Copyright 2014 The MathWorks, Inc.

if h.isTargetObject( target )
target = target.TargetName;
end
str = h.formStatusString( sprintf( [ h.FinalTargetSuccessStatus ], target ) );
end