def detectTextTwgoCancelled(frame):
    """Return an empty string if there is no cancelled message in this
    text TWGO frame. Otherwise return string with cancellation details.

    Args:
        frame (dict): Contains a text TWGO frame.

    Returns:
        (str):  '' if there is no cancellation associated
            with this frame, otherwise will be a string
            with information about the cancellation.
    """

    location = ''
    if 'location' in frame['contents']:
        location = (frame['contents']['location']).strip()
        if len(location) > 0:
            location = '-' + location

    if 'records' in frame['contents']:
        records = frame['contents']['records']
        for x in records:
            if 'report_status' in x:
                if x['report_status'] == 0:
                    return ' [CANCELLED {}-{}{}]'.format(x['report_year'],\
                        x['report_number'], location)    
    return ''