def create_error(msg, input_id=''):
    """
    Format an error response for validation of integration instances and actions

    Args:
        msg (str/unicode): Message to present to the user
        input_id (str): The environment variable name (what the variable is called in the descriptor and in inputs.py)

    Returns:
        (dict): Message and field ID to return to the user

    """
    return {'message': msg, 'inputId': input_id}
