def failed()

in project_future.py [0:0]


    def failed(self, identifier, error):
        version_commit = self.version['commit'][:6]
        bug_identifier = None
        build_config = self.build_config if self.build_config else self.action.get('configuration', None)
        if 'xfail' in self.action:
            bug_identifier = is_xfailed(self.action['xfail'],
                                        self.version['version'],
                                        self.current_platform,
                                        self.swift_branch,
                                        build_config,
                                        self.job_type)
        if bug_identifier:
            error_str = 'XFAIL: {bug}, {project}, {compatibility}, {commit}, {action_target}'.format(
                            bug=bug_identifier,
                            project=self.project['path'],
                            compatibility=self.version['version'],
                            commit=version_commit,
                            action_target = dict_get(self.action, 'scheme', 'target', default="Swift Package")
                        )
            if 'destination' in self.action:
                error_str += ', ' + self.action['destination']
            result = ActionResult(Result.XFAIL, error_str)
        else:
            error_str = 'FAIL: {project}, {compatibility}, {commit}, {action_target}'.format(
                            project=self.project['path'],
                            compatibility=self.version['version'],
                            commit=version_commit,
                            action_target = dict_get(self.action, 'scheme', 'target', default="Swift Package")
                        )
            if 'destination' in self.action:
                error_str += ', ' + self.action['destination']
            result = ActionResult(Result.FAIL, error_str)
        common.debug_print(error_str)
        return result