def silent_write_text_file(filename, contents=''):
    """
    Create a new text file and writes contents into it (do not raise exceptions).
    If file with specified name already exists, it will be overwritten.
    :return: Dict - 'error': empty string if success, or error message otherwise.
    """
    result = {'error': ''}
    try:
        f = open(filename, 'w')
        f.write(contents)
        f.close()
        return result
    except Exception as e:
        result['error'] = str(e)
        return result