| 1783 | } |
| 1784 | |
| 1785 | static void main_report_client_bootstrap_failure(cbm_daemon_process_role_t role, |
| 1786 | const cbm_daemon_bootstrap_result_t *result) { |
| 1787 | const char *message = (result && result->message[0]) |
| 1788 | ? result->message |
| 1789 | : "CBM daemon connection failed before the session was " |
| 1790 | "established"; |
| 1791 | char detail[MAIN_CLIENT_FAILURE_DETAIL_CAP]; |
| 1792 | (void)snprintf(detail, sizeof(detail), "%s%s%s", message, |
| 1793 | (result && result->remedy[0]) ? " " : "", result ? result->remedy : ""); |
| 1794 | main_report_client_failure(role, detail); |
| 1795 | } |
| 1796 | |
| 1797 | /* #2277: a conflict is a legitimate refusal (another build owns the account |
| 1798 | * daemon), but it must name that daemon and the way out. known_active is a |
no test coverage detected