def addError(errors, experimenter, error):
    """Associates the error with the correct experimenter"""
    if experimenter not in errors.keys():
        errors[experimenter] = [error]
    else:
        errors[experimenter].append(error)
